Skip to content

Commit

Permalink
fix: e2e report for forked PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenvechain committed Jan 15, 2024
1 parent 6a4c859 commit 50ba0b8
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 14 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test-e2e-results.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: 'E2E Test Report'

on:
workflow_run:
workflows: ['E2E Tests']
types:
- completed

permissions:
contents: read
actions: read
checks: write

jobs:
report:
runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@v1
id: test-reporter
with:
artifact: test-results
name: JEST Tests
path: '*.xml'
reporter: jest-junit

- name: Echo Report URL
run: |
echo ${{steps.test-reporter.outputs.url_html}}
19 changes: 5 additions & 14 deletions .github/workflows/test-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,25 +64,16 @@ jobs:
run: |
docker load --input /tmp/vechain-thor.tar
docker image ls -a
- name: Run Tests
working-directory: ./tests/thor-e2e-tests
run: |
export THOR_IMAGE=vechain/thor:${{ github.sha }}
yarn install
yarn test
- name: Publish Results
uses: dorny/test-reporter@v1
id: test-reporter
- uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: E2E Test Results
only-summary: 'false'
list-suites: 'all'
list-tests: 'failed'
fail-on-error: 'true'
reporter: "jest-junit"
path: |
./tests/thor-e2e-tests/junit.xml
- name: Echo Report URL
run: |
echo ${{steps.test-reporter.outputs.url_html}}
name: e2e-test-results
path: ./tests/thor-e2e-tests/junit.xml

0 comments on commit 50ba0b8

Please sign in to comment.