Skip to content

Commit

Permalink
combine workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
bmacnaughton committed Nov 29, 2023
1 parent aa6b519 commit f8e45ce
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/commit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ on:
push:
branches-ignore:
- test/**
pull_request:
branches-ignore:
- test/**

jobs:
basic-tests:
if: github.event_name != 'pull_request'
linux-test:
runs-on: ubuntu-latest

strategy:
Expand All @@ -22,3 +24,22 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test

other-os-tests:
if: github.event_name == 'pull_request'
needs: linux-test
runs-on: ${{ matrix.os }}

strategy:
matrix:
node-version: [18.x, 20.x, 21.x]
os: [windows-latest, macos-latest]

steps:
- uses: actions/checkout@v4
- name: Testing node v${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test

0 comments on commit f8e45ce

Please sign in to comment.