We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1794dfd commit 5b6af14Copy full SHA for 5b6af14
1 file changed
.github/workflows/test-and-build.yml
@@ -0,0 +1,31 @@
1
+name: Test and Build
2
+
3
+on:
4
+ workflow_dispatch:
5
6
+jobs:
7
+ test-and-build:
8
+ runs-on: ubuntu-latest
9
+ strategy:
10
+ matrix:
11
+ node-version: [16.x, 14.x]
12
+ steps:
13
+ - name: Checkout code
14
+ uses: actions/checkout@v2
15
+ with:
16
+ ref: ${{ github.event.pull_request.head.sha }}
17
+ fetch-depth: 0
18
19
+ - name: Use Node.js ${{ matrix.node-version }}
20
+ uses: actions/setup-node@v2
21
22
+ node-version: ${{ matrix.node-version }}
23
24
+ - name: Install dependencies
25
+ run: npm install
26
27
+ - name: Run tests
28
+ run: npm run test
29
30
+ - name: Build
31
+ run: npm run build
0 commit comments