Skip to content

Commit 18af607

Browse files
committed
Add GitHub action to lint, build and test
1 parent 01a3f9f commit 18af607

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)