File tree Expand file tree Collapse file tree 2 files changed +77
-0
lines changed
Expand file tree Collapse file tree 2 files changed +77
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches : [ "master" ]
7+ paths :
8+ - ' package.json'
9+ - ' package-lock.json'
10+ pull_request :
11+ branches : [ "master" ]
12+ paths :
13+ - ' package.json'
14+ - ' package-lock.json'
15+
16+ jobs :
17+ build-bundle :
18+ name : Build client bundle
19+ runs-on : ubuntu-latest
20+
21+ strategy :
22+ matrix :
23+ node-version : [20.x]
24+
25+ steps :
26+ - uses : actions/checkout@v4
27+ - name : Get Version from package.json
28+ id : get_version
29+ run : |
30+ VERSION=$(jq -r '.version' package.json)
31+ echo "VERSION=$VERSION" >> $GITHUB_ENV
32+ - name : Use Node.js ${{ matrix.node-version }}
33+ uses : actions/setup-node@v4
34+ with :
35+ node-version : ${{ matrix.node-version }}
36+ cache : ' npm'
37+ - run : npm ci
38+ - run : npm run build
39+ - name : Add Full SHA to Workflow Summary
40+ run : |
41+ echo "SHA: ${{ github.sha }}" >> $GITHUB_STEP_SUMMARY
42+ - name : Write full SHA description
43+ id : vars
44+ run : echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
45+ - name : Prepare bundle zip
46+ uses : actions/upload-artifact@v4
47+ with :
48+ name : SFU-v${{ env.VERSION }}-client-bundle-${{ steps.vars.outputs.sha_short }}
49+ path : ./bundle/
Original file line number Diff line number Diff line change 1+ name : Tests
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches : [ "master" ]
7+ pull_request :
8+ branches : [ "master" ]
9+
10+ jobs :
11+ test :
12+ name : Running the test suite
13+ runs-on : ubuntu-latest
14+ strategy :
15+ matrix :
16+ node-version : [20.x]
17+ steps :
18+ - uses : actions/checkout@v4
19+ - name : Use Node.js ${{ matrix.node-version }}
20+ uses : actions/setup-node@v4
21+ with :
22+ node-version : ${{ matrix.node-version }}
23+ cache : ' npm'
24+ - run : npm ci
25+ - name : Run tests
26+ env :
27+ NUM_WORKERS : 1
28+ run : npm test
You can’t perform that action at this time.
0 commit comments