There was an error while loading. Please reload this page.
1 parent f65c32b commit a0a060fCopy full SHA for a0a060f
1 file changed
.github/workflows/ci.yml
@@ -0,0 +1,45 @@
1
+name: CI
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - "*"
7
+ pull_request:
8
+ branches: [master]
9
10
+jobs:
11
+ test:
12
+ runs-on: ubuntu-latest
13
14
+ strategy:
15
+ matrix:
16
+ node-version: [20.x]
17
18
+ steps:
19
+ - name: Checkout code
20
+ uses: actions/checkout@v4
21
22
+ - name: Setup Node.js ${{ matrix.node-version }}
23
+ uses: actions/setup-node@v4
24
+ with:
25
+ node-version: ${{ matrix.node-version }}
26
+ cache: "npm"
27
28
+ - name: Install dependencies
29
+ run: npm ci
30
31
+ - name: Build project
32
+ run: npm run build
33
34
+ - name: Run tests
35
+ run: npm test
36
37
+ - name: Upload test results
38
+ uses: actions/upload-artifact@v4
39
+ if: failure()
40
41
+ name: test-results-${{ matrix.node-version }}
42
+ path: |
43
+ test-results/
44
+ coverage/
45
+ retention-days: 7
0 commit comments