-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: change to use artefacts but extend them
- Loading branch information
1 parent
da79496
commit 6f6aff3
Showing
3 changed files
with
34 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Annotate CI run with test results | ||
on: | ||
workflow_run: | ||
workflows: ["Run Tests"] | ||
types: | ||
- completed | ||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
annotate: | ||
permissions: | ||
checks: write | ||
|
||
name: Annotate CI run with test results | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion != 'cancelled' }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [18.x, 20.x, 22.x] | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Annotate CI run with test results | ||
uses: dorny/[email protected] | ||
with: | ||
artifact: test-reports-${{ matrix.node-version }} | ||
name: Test Results (${{matrix.node-version}} | ||
path: "test-results.json" | ||
reporter: mocha-json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,6 @@ permissions: | |
contents: read | ||
checks: write | ||
pull-requests: write | ||
actions: read | ||
checks: write | ||
|
||
jobs: | ||
build: | ||
|
@@ -37,16 +35,8 @@ jobs: | |
|
||
- name: Run Tests and Linting | ||
run: npm run test | ||
|
||
- name: Test Report | ||
uses: dorny/test-reporter@v1 | ||
with: | ||
name: Mocha Tests | ||
path: test/reports/test-results.json | ||
reporter: mocha-json | ||
|
||
- name: Cucumber annotations | ||
uses: deblockt/[email protected] | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
access-token: ${{ secrets.GITHUB_TOKEN }} | ||
path: "test/reports/cucumber-report.json" | ||
name: test-reports-${{ matrix.node-version }} | ||
path: test/reports/ |