Skip to content

Commit

Permalink
Make the tests run on different versions of Node and different OSes
Browse files Browse the repository at this point in the history
  • Loading branch information
illright committed Jun 13, 2024
1 parent b8bdd51 commit 1a36191
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: 'Setup and install'
description: 'Common setup steps for Actions'
inputs:
node-version:
description: 'Version of Node.js'
required: true
default: 20

runs:
using: composite
Expand All @@ -9,7 +14,7 @@ runs:

- uses: actions/setup-node@v4
with:
node-version: 20
node-version: ${{ inputs.node-version }}
cache: 'pnpm'

- uses: actions/checkout@v4
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@ jobs:
quality-checks:
name: Quality checks
timeout-minutes: 10
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node: [18, 22]
steps:
- uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
with:
node-version: ${{ matrix.node }}

- name: Run checks
run: |
Expand Down

0 comments on commit 1a36191

Please sign in to comment.