From 5c2b3e2cd115a25db1891b2c97021a58de516f42 Mon Sep 17 00:00:00 2001 From: Tomasz Pluskiewicz Date: Thu, 16 May 2024 13:50:17 +0200 Subject: [PATCH] ci: pin node on windows --- .github/workflows/ci.yaml | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 22e6d670..ff26a651 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -81,11 +81,14 @@ jobs: strategy: fail-fast: false matrix: - os: - - ubuntu-latest - - macos-latest - - windows-latest - runs-on: ${{ matrix.os }} + env: + - os: ubuntu-latest + node: 20 + - os: macos-latest + node: 20 + - os: windows-latest + node: 20.12.1 # Pinned, because of https://github.com/approvals/Approvals.NodeJS/issues/176 + runs-on: ${{ matrix.env.os }} steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v3 @@ -103,11 +106,14 @@ jobs: strategy: fail-fast: false matrix: - os: - - ubuntu-latest - - macos-latest - - windows-latest - runs-on: ${{ matrix.os }} + env: + - os: ubuntu-latest + node: 20 + - os: macos-latest + node: 20 + - os: windows-latest + node: 20.12.1 # Pinned, because of https://github.com/approvals/Approvals.NodeJS/issues/176 + runs-on: ${{ matrix.env.os }} steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v3 @@ -115,13 +121,13 @@ jobs: - name: pack all run: npm pack -ws - run: npm install -g barnard59-*.tgz - if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' + if: matrix.env.os == 'ubuntu-latest' || matrix.env.os == 'macos-latest' - run: cmd /c npm install -g (Get-ChildItem -Filter barnard59-*.tgz).FullName - if: matrix.os == 'windows-latest' + if: matrix.env.os == 'windows-latest' - run: which barnard59 - run: barnard59 --help - run: barnard59 shacl validate --shapes test/support/pipeline-shapes.ttl < test/e2e/definitions/file-loader.ttl - if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' + if: matrix.env.os == 'ubuntu-latest' || matrix.os == 'macos-latest' - run: barnard59 shacl validate --shapes test/support/pipeline-shapes.ttl < test/e2e/definitions/file-loader.ttl - if: matrix.os == 'windows-latest' + if: matrix.env.os == 'windows-latest' shell: cmd