Skip to content

Commit

Permalink
Merge pull request #69 from mbland/fix-download-artifact
Browse files Browse the repository at this point in the history
Add actions/checkout to publish-test-results
  • Loading branch information
mbland committed Dec 19, 2023
2 parents dc4f4fa + 4dfb9b9 commit ec8346a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/publish-test-results.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ jobs:
report:
runs-on: ubuntu-latest
steps:
# dorny/test-reporter has an `artifact:` attribute that will check out the
# repo and download test results automatically. However,
# dorny/test-reporter@v1 wasn't compatible with the bump to
# actions/upload-artifact@v4 in run-tests.yaml. So we manually check
# out the repo and download the results to avoid the rev lock.
- name: Check out repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_commit.id }}

- name: Download test results
uses: actions/download-artifact@v4
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
name: "Run Tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Java
uses: actions/setup-java@v4
Expand Down

0 comments on commit ec8346a

Please sign in to comment.