diff --git a/.github/actions/create-test-report/action.yml b/.github/actions/create-test-report/action.yml index 64f9c02..4b780f9 100644 --- a/.github/actions/create-test-report/action.yml +++ b/.github/actions/create-test-report/action.yml @@ -19,6 +19,26 @@ runs: shell: bash run: node tools/mergeTests.js + - name: Read mochawesome.json + uses: actions/github-script@v7 + with: + result-encoding: string + script: | + try { + const fs = require('fs') + const jsonString = fs.readFileSync('test/mochawesome-report/mochawesome.json') + var report = JSON.parse(jsonString); + let stats = { + passing: report.stats.passes, + skipped: report.stats.pending, + failures: report.stats.failures + }; + core.notice(JSON.stringify(stats)); + } catch(err) { + core.error("Error while reading or parsing test/mochawesome-report/mochawesome.json") + core.setFailed(err) + } + - name: Upload artifacts uses: actions/upload-artifact@v4 if: success() diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 992ca04..e431509 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,10 +42,10 @@ jobs: strategy: fail-fast: false matrix: - os: [macos-14, ubuntu-22.04, windows-2022] + os: [macos-13, macos-14, ubuntu-22.04, windows-2022] # os: [ windows-2022, ubuntu-22.04] - electron: [30.5.0] - # electron: [29.4.6, 30.5.1, 31.6.0] + # electron: [30.5.0] + electron: [29.4.6, 30.5.0, 31.6.0] # electron: [31.6.0, 32.1.0] name: test-${{ matrix.os }}-v${{ matrix.electron }} @@ -67,22 +67,7 @@ jobs: files: "build/Release/edge_coreclr.node" 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