Skip to content

Commit af59a45

Browse files
committed
Add GH workflow to run tests
1 parent 5d7a2e7 commit af59a45

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/run-tests.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Run tests
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "*" ]
8+
9+
# Allows running this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: '20.x'
20+
- run: npm ci
21+
- run: npm run build
22+
- run: npm test

0 commit comments

Comments
 (0)