Skip to content

Commit

Permalink
chore(ci): expand matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Sep 4, 2024
1 parent 06db784 commit 9268f0a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/actions/prepare/action.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
description: Prepares the repo for a typical CI job

name: Prepare
inputs:
node-version: # id of input
description: 'Node.js version'
required: false
default: '20'

runs:
steps:
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
with:
node-version: '20'
node-version: ${{ inputs.node-version }}
- name: Install dependencies
uses: bahmutov/npm-install@e5c7e14408aa6089501de32bd16123b41738047e # v1.10.2
with:
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node_version: [20, 22]
os: [ubuntu-latest, windows-latest]
name: Node.js v${{ matrix.node_version }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
DEBUG: 'impvol*'
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: ./.github/actions/prepare
with:
node-version: ${{ matrix.node_version }}
- run: npm test

name: Test
Expand Down

0 comments on commit 9268f0a

Please sign in to comment.