ci: display HTML test report URLs in check run summaries (#252) #16
Workflow file for this run
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
name: Dummy Check Result | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/dummy_check_result.yml' | |
jobs: | |
main_job: | |
name: "Main Job" | |
runs-on: ubuntu-22.04 | |
outputs: | |
run_id: ${{ steps.get_run.outputs.run_id }} | |
steps: | |
- name: Get Run ID | |
id: get_run | |
run: echo "run_id=${{ github.run_id }}" >> $GITHUB_OUTPUT | |
- name: Simulate Work | |
run: | | |
echo "Doing some work..." | |
sleep 5 | |
post_check: | |
needs: main_job | |
name: "Post Check" | |
runs-on: ubuntu-22.04 | |
permissions: | |
checks: write | |
contents: read | |
steps: | |
- name: Create Post-Job Check Run | |
uses: LouisBrunner/[email protected] | |
with: | |
token: ${{ github.token }} | |
name: "Test Report Link (Post-Job)" | |
status: completed | |
conclusion: neutral | |
details_url: "https://www.google.com/search?q=test-neutral" | |
output: | | |
{ | |
"title": "Test Report", | |
"summary": "Testing with neutral conclusion status.\nClick 'Details' to view the test report.\nExpected URL: https://www.google.com/search?q=test-neutral" | |
} |