Skip to content

Commit

Permalink
Merge pull request #617 from stellar-aria/bugfix/pr-test-results
Browse files Browse the repository at this point in the history
General GitHub Actions fixes and updates
  • Loading branch information
beserge committed Mar 6, 2024
2 parents c85e224 + 245a97e commit fc4abb0
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Build Documentation
uses: mattnotmitt/doxygen-action@v1.2.1
uses: mattnotmitt/doxygen-action@v1
with:
doxyfile-path: doc/Doxyfile

4 changes: 2 additions & 2 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Build Documentation
uses: mattnotmitt/doxygen-action@v1.2.1
uses: mattnotmitt/doxygen-action@v1
with:
doxyfile-path: doc/Doxyfile
- name: Deploy Web
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
clang-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: DoozyX/clang-format-lint-action@v0.11
- uses: actions/checkout@v4
- uses: DoozyX/clang-format-lint-action@v0.17
with:
source: 'src'
extensions: 'h,cpp'
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/test_results.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Test Results

on:
workflow_run:
workflows: ["Unit Tests"]
types:
- completed
permissions: {}

jobs:
test-results:
name: Test Results
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion != 'skipped'

permissions:
checks: write

# needed unless run with comment_mode: off
pull-requests: write

# required by download step to access artifacts API
actions: read

steps:
- name: Download and Extract Artifacts
uses: dawidd6/action-download-artifact@e7466d1a7587ed14867642c2ca74b5bcc1e19a2d
with:
run_id: ${{ github.event.workflow_run.id }}
path: artifacts

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
commit: ${{ github.event.workflow_run.head_sha }}
event_file: artifacts/Event File/event.json
event_name: ${{ github.event.workflow_run.event }}
files: "artifacts/**/*.xml"
21 changes: 15 additions & 6 deletions .github/workflows/unit_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: recursive

Expand All @@ -34,11 +34,20 @@ jobs:
cd tests/build/bin
./libDaisy_gtest --gtest_output=xml:gtestresults.xml
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
- name: Upload Test Results
uses: actions/upload-artifact@v4
if: always()
with:
files: tests/build/bin/**/*.xml
github_token: ${{ secrets.GITHUB_TOKEN }}

name: Test Results
path: tests/build/bin/**/*.xml

event_file:
name: "Event File"
runs-on: ubuntu-latest
steps:
- name: Upload
uses: actions/upload-artifact@v4
with:
name: Event File
path: ${{ github.event_path }}

0 comments on commit fc4abb0

Please sign in to comment.