Skip to content

Commit da13b44

Browse files
committed
ci: update test workflow
1 parent 92598e4 commit da13b44

1 file changed

Lines changed: 16 additions & 8 deletions

File tree

.github/workflows/test.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,20 @@ on:
55
branches: [ "**" ]
66

77
jobs:
8-
test:
9-
runs-on: ubuntu-latest
8+
build:
9+
strategy:
10+
matrix:
11+
os: [macos-latest, ubuntu-latest, windows-latest]
12+
runs-on: ${{ matrix.os }}
1013
steps:
11-
- uses: actions/checkout@v4
12-
- uses: actions/setup-node@v4
13-
with:
14-
node-version: lts/*
15-
- run: yarn
16-
- run: yarn run test
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
- name: Install Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: lts/*
20+
- run: npm install
21+
- run: xvfb-run -a npm test
22+
if: runner.os == 'Linux'
23+
- run: npm test
24+
if: runner.os != 'Linux'

0 commit comments

Comments
 (0)