From 5f040562a905acfc625327710e10530108712dec Mon Sep 17 00:00:00 2001 From: agracio Date: Mon, 16 Sep 2024 23:05:20 +0100 Subject: [PATCH] updating GitHub pipeline --- .github/workflows/build.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ecca38e..9923331 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,7 +11,7 @@ jobs: build: runs-on: windows-2022 strategy: - fail-fast: false + fail-fast: true matrix: # electron: [29.0.0, 30.0.0, 31.0.0] electron: [29.0.0] @@ -20,6 +20,22 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + + - name: "Read JSON" + uses: actions/github-script@v7 + id: check-env + with: + result-encoding: string + script: | + try { + const fs = require('fs') + const jsonString = fs.readFileSync('package.json') + var json = JSON.parse(jsonString); + core.setFailed(json.devDependencies.electron) + } catch(err) { + core.error("Error while reading or parsing the JSON") + core.setFailed(err) + } - name: Setup NodeJS uses: actions/setup-node@v4 @@ -37,6 +53,7 @@ jobs: path: node_modules key: ${{ matrix.electron }}-${{ hashFiles('package-lock.json') }} + - name: Setup dotnet uses: actions/setup-dotnet@v4 with: