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 17, 2024
1 parent 417ebb5 commit 5de1442
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true # required to setup CSC
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: 1

jobs:
build:
Expand Down
18 changes: 17 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@ on:
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true # required to setup CSC
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: 1

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-13, macos-14, ubuntu-22.04, windows-2022]
os: [macos-14, ubuntu-22.04, windows-2022]
# os: [ windows-2022, ubuntu-22.04]
electron: [30.5.1]
# electron: [29.4.6, 30.5.1, 31.6.0]
Expand All @@ -67,6 +68,21 @@ jobs:
fail: true
ignore_case: true

- name: Read package.json
uses: actions/github-script@v7
with:
result-encoding: string
script: |
try {
const fs = require('fs')
const jsonString = fs.readFileSync('package.json')
var json = JSON.parse(jsonString);
console.log(json.devDependencies)
} catch(err) {
core.error("Error while reading or parsing package.json")
core.setFailed(err)
}
- if: runner.os == 'Windows'
name: Run Windows tests
uses: ./.github/actions/test-windows
Expand Down

0 comments on commit 5de1442

Please sign in to comment.