Skip to content

Commit

Permalink
updating GitHub pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
agracio committed Sep 16, 2024
1 parent 07eb946 commit 5f04056
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand All @@ -37,6 +53,7 @@ jobs:
path: node_modules
key: ${{ matrix.electron }}-${{ hashFiles('package-lock.json') }}


- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
Expand Down

0 comments on commit 5f04056

Please sign in to comment.