Skip to content

Commit

Permalink
splitting out os tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Borkowski committed Dec 26, 2023
1 parent 4437ed9 commit 11d1809
Showing 1 changed file with 38 additions and 4 deletions.
42 changes: 38 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Cross-Platform Test
on: [push, pull_request]
jobs:
test:
test-linux:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest]
node-version: [14.x, 20.x]
steps:
- uses: actions/checkout@v2
Expand All @@ -16,10 +16,44 @@ jobs:
- name: Install dependencies
run: npm install
- name: Run tests
run: npm run test:ci
run: sudo npm run test:nix

test-macos:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
node-version: [14.x, 20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Run tests
run: npm run test:mac

test-windows:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
node-version: [14.x, 20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Run tests
run: npm run test:win

publish:
needs: test
needs: [test-linux, test-macos, test-windows]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
Expand Down

0 comments on commit 11d1809

Please sign in to comment.