Skip to content

Commit b93cc86

Browse files
committed
Add GitHub Actions workflow for running tests
1 parent 9feaa19 commit b93cc86

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/pr.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Run tests
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
strategy:
11+
matrix:
12+
os: [macos-latest, ubuntu-latest, windows-latest]
13+
runs-on: ${{ matrix.os }}
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
- name: Install Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 18.x
21+
- run: npm install
22+
- run: xvfb-run -a npm test
23+
if: runner.os == 'Linux'
24+
- run: npm test
25+
if: runner.os != 'Linux'

0 commit comments

Comments
 (0)