Skip to content

Commit

Permalink
tets(ci): matrix against mac, windows, and node
Browse files Browse the repository at this point in the history
goal is to catch issues on platforms like windows
  • Loading branch information
lidel committed Jun 7, 2024
1 parent fa64404 commit a3afda7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Check for new kubo version
id: check
uses: ./.github/actions/check-for-kubo-release
- name: Set up node
if: steps.check.outputs.publish == 'true'
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 14.x
node-version: 20.x
- name: Install
if: steps.check.outputs.publish == 'true'
run: npm install
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, linux-latest]
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14.x
node-version: ${{ matrix.node-version }}
- run: npm install
- uses: gozala/[email protected]
- run: npm run build --if-present
Expand Down

0 comments on commit a3afda7

Please sign in to comment.