Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

Commit

Permalink
ci(test): multi os and use xvfb on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Nokome Bentley committed Apr 15, 2024
1 parent 2a622fb commit c195dce
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@ on:
branches: ["main"]

env:
NODE_VERSION: '20'
NODE_VERSION: "20"

jobs:
main:
runs-on: ubuntu-latest
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
Expand All @@ -30,4 +36,9 @@ jobs:
run: npm run lint

- name: Test
run: npm run test
run: npm test
if: runner.os != 'Linux'

- name: Test with xvfb
run: xvfb-run -a npm test
if: runner.os == 'Linux'

0 comments on commit c195dce

Please sign in to comment.