From 1a36191f534c969c27b9689d218d199cff8b8469 Mon Sep 17 00:00:00 2001 From: Lev Chelyadinov Date: Thu, 13 Jun 2024 20:42:12 +0200 Subject: [PATCH] Make the tests run on different versions of Node and different OSes --- .github/actions/setup/action.yml | 7 ++++++- .github/workflows/quality.yaml | 8 +++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 446fa26..e24e645 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -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 @@ -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 diff --git a/.github/workflows/quality.yaml b/.github/workflows/quality.yaml index 1d5e75e..9ced410 100644 --- a/.github/workflows/quality.yaml +++ b/.github/workflows/quality.yaml @@ -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: |