Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test report to the GitHub actions workflow. #837

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 28 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on: [push, pull_request, workflow_dispatch]
env:
RELEASE_DIR: tmp_release

permissions:
contents: read
actions: read
checks: write

jobs:
test-and-assemble:
runs-on: ubuntu-latest
Expand All @@ -24,7 +29,7 @@ jobs:

# Checkout Silicon (note: all checkouts delete the contents of their working directory)
- name: Checkout Silicon
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: true

Expand All @@ -45,7 +50,7 @@ jobs:
# Cache path is relative to the directory in which sbt is invoked
run: echo "SBT_OPTS=-Dsbt.global.base=sbt-cache/.sbtboot -Dsbt.boot.directory=sbt-cache/.boot -Dsbt.ivy.home=sbt-cache/.ivy" >> $GITHUB_ENV
- name: Cache sbt
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
sbt-cache/.sbtboot
Expand Down Expand Up @@ -77,6 +82,26 @@ jobs:
retention-days: 14
if-no-files-found: error

- name: Upload test reports
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: test reports
path: |
target/test-reports/*.xml
retention-days: 14
if-no-files-found: error

- name: Test Report
uses: phoenix-actions/test-reporting@v15
if: ${{ !cancelled() }}
with:
name: "Silicon Test Report"
path: "target/test-reports/*.xml"
reporter: java-junit
list-suites: failed
list-tests: failed

release-snapshot:
needs: test-and-assemble
# Only for regular commits to master branch (no pull requests, no tagging)
Expand All @@ -85,7 +110,7 @@ jobs:
steps:
# Checkout Silicon (deletes content of working directory)
- name: Checkout Silicon
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: true

Expand Down
Loading