Skip to content

Commit

Permalink
use matrix for os
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Oct 30, 2023
1 parent 644833f commit a9e6dff
Showing 1 changed file with 3 additions and 23 deletions.
26 changes: 3 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,12 @@ on:

jobs:
test:
name: Node.js Tests
runs-on: ubuntu-latest
strategy:
matrix:
node: [14.x, 16.x, 18.x]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Setup Chomp
uses: guybedford/chomp-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm install
- run: chomp lint
- run: chomp test
windows-test:
name: Node.js Windows Tests
runs-on: windows-latest
strategy:
matrix:
node: [14.x, 16.x, 18.x]
os: [windows-latest, ubuntu-latest]
node: [18.x, 20.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
Expand Down

0 comments on commit a9e6dff

Please sign in to comment.