Skip to content

Commit

Permalink
github: change to build matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
leafo committed Dec 3, 2024
1 parent 898b30b commit a48b6ef
Showing 1 changed file with 11 additions and 30 deletions.
41 changes: 11 additions & 30 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,20 @@ name: test
on: [push, pull_request]

jobs:
test-linux:
runs-on: ubuntu-latest
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
go-version: [1.16]

steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4

- name: test
run: |
npm ci --no-audit
- name: release
run: |
node release/test.js
test-windows:
runs-on: windows-latest

steps:
- uses: actions/checkout@master

- name: test
run: |
npm ci --no-audit
- name: release
run: |
node release/test.js
test-macos:
runs-on: macos-latest

steps:
- uses: actions/checkout@master
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}

- name: test
run: |
Expand Down

0 comments on commit a48b6ef

Please sign in to comment.