From 9a25a5260873c931c4b8b7f4819b28b5cc353761 Mon Sep 17 00:00:00 2001 From: mariuspod <14898268+mariuspod@users.noreply.github.com> Date: Wed, 28 Dec 2022 13:48:26 +0100 Subject: [PATCH] fix: ci pipeline --- .github/workflows/ci.yaml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 246289a..281d8cb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -14,28 +14,17 @@ jobs: os: - macos-latest - ubuntu-latest - - windows-latest + - windows-2019 steps: - name: Fetch code uses: actions/checkout@v1 with: submodules: true - - name: Install dependencies - run: yarn install --ignore-scripts - - - name: Build addon - if: runner.os != 'Linux' - run: make build-addon - - - name: Build addon - if: runner.os == 'Linux' - run: make build-addon-linux - - name: Get minimal Node.js version from package.json (Linux & macOS) id: node-version-nix if: runner.os != 'Windows' - run: echo "::set-output name=version::$(node -p 'require("./package.json").engines.node.match(/(\d.*)$/)[0]')" + run: echo "::set-output name=version::$(node -p 'require("./package.json").engines.node.match(/(\d+)\..*$/)[1]')" - name: Use Node.js ${{ steps.node-version-nix.outputs.version }} (Linux & macOS) if: runner.os != 'Windows' @@ -46,7 +35,7 @@ jobs: - name: Get minimal Node.js version from package.json (Windows) id: node-version-win if: runner.os == 'Windows' - run: echo "::set-output name=version::$(node -p 'require(\"./package.json\").engines.node.match(/(\d.*)$/)[0]')" + run: echo "::set-output name=version::$(node -p 'require(\"./package.json\").engines.node.match(/(\d+)\..*$/)[1]')" - name: Use Node.js ${{ steps.node-version-win.outputs.version }} (Windows) if: runner.os == 'Windows' @@ -54,6 +43,17 @@ jobs: with: node-version: ${{ steps.node-version-win.outputs.version }} + - name: Install dependencies + run: yarn install --ignore-scripts + + - name: Build addon + if: runner.os != 'Linux' + run: make build-addon + + - name: Build addon + if: runner.os == 'Linux' + run: make build-addon-linux + - name: Run tests for addon run: make test-tap