Skip to content

Commit 85aef3f

Browse files
committed
Add GitHub Actions workflow
1 parent 3ac94ad commit 85aef3f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/main.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build
2+
on:
3+
push:
4+
pull_request:
5+
jobs:
6+
build-and-test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
node: [18, 20]
12+
steps:
13+
-
14+
uses: actions/checkout@v3
15+
-
16+
name: Use Node.js ${{ matrix.node }}
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: ${{ matrix.node }}
20+
-
21+
name: Install dependencies
22+
run: yarn install
23+
-
24+
name: Run tests
25+
run: npm run test

0 commit comments

Comments
 (0)