We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01a3f9f commit 18af607Copy full SHA for 18af607
.github/workflows/build.yml
@@ -0,0 +1,29 @@
1
+name: Build 🛠️
2
+
3
+on:
4
+ workflow_dispatch: # can call manually
5
+ push:
6
+ branches:
7
+ - master
8
+ pull-request:
9
10
+jobs:
11
+ test:
12
+ name: Run the tests
13
+ strategy:
14
+ matrix:
15
+ node-version: ['18.x', '20.x']
16
17
+ runs-on: ubuntu-latest
18
19
+ steps:
20
+ - uses: actions/checkout@v4
21
+ - name: Use Node.js ${{ matrix.node-version }}
22
+ uses: actions/setup-node@v4
23
+ with:
24
+ node-version: ${{ matrix.node-version }}
25
+ cache: 'npm'
26
+ - run: npm ci
27
+ - run: npm run lint
28
+ - run: npm run build
29
+ - run: npm run test
0 commit comments