-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): wip, add draft of CI jobs
- Loading branch information
Showing
3 changed files
with
112 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
name: Socket CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
mac_build: | ||
name: macOS build | ||
runs-on: macOS-13 | ||
timeout-minutes: 15 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 18.x | ||
|
||
- name: webfactory/ssh-agent | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
- name: Build app | ||
run: | | ||
npm install | ||
npm run build | ||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ssc_artifacts_linux | ||
path: /Users/runner/.local/share/socket/ | ||
retention-days: 1 | ||
|
||
linux_build: | ||
name: Linux build | ||
runs-on: ubuntu-latest-m | ||
timeout-minutes: 20 | ||
needs: lint | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: webfactory/ssh-agent | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
|
||
- name: Build app | ||
run: | | ||
npm install | ||
npm run build | ||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ssc_artifacts_linux | ||
path: /Users/runner/.local/share/socket/ | ||
retention-days: 1 | ||
|
||
windows: | ||
name: Windows | ||
runs-on: windows-latest | ||
timeout-minutes: 20 | ||
needs: lint | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.inputs.tag }} | ||
|
||
- name: Configure SSH | ||
run: Set-Service ssh-agent -StartupType Manual | ||
|
||
- name: Start SSH | ||
run: Start-Service ssh-agent | ||
|
||
- name: Add SSH key | ||
run: echo $env:SSH_PRIVATE_KEY | ssh-add - | ||
env: | ||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
- name: Add github.com to known_hosts | ||
run: | | ||
mkdir ~/.ssh | ||
ssh-keyscan github.com >> ~/.ssh/known_hosts | ||
- name: Build app | ||
run: | | ||
npm install | ||
npm run build | ||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ssc_artifacts_linux | ||
path: /Users/runner/.local/share/socket/ | ||
retention-days: 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,5 +24,8 @@ | |
"lint": "standard \"**/*.js\"" | ||
}, | ||
"author": "Socket Supply Co. <[email protected]>", | ||
"license": "MIT" | ||
"license": "MIT", | ||
"dependencies": { | ||
"@socketsupply/socket": "^0.5.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters