Files
Dat Dang eab476da45 ci: cancel superseded workflow runs on the same PR (#5151)
* ci: cancel superseded workflow runs on the same PR

* ci: skip test reports for cancelled upstream runs

Addresses: 4583936850, 6931471819
https://github.com/linagora/tmail-flutter/pull/5151#discussion_r4583936850
https://github.com/linagora/tmail-flutter/pull/5151#issuecomment-6931471819

* ci: rely on called workflow concurrency for memory-check label runs

Addresses: 4583936853, 6931471819
https://github.com/linagora/tmail-flutter/pull/5151#discussion_r4583936853
https://github.com/linagora/tmail-flutter/pull/5151#issuecomment-6931471819
2026-11-17 13:53:45 +07:00

32 lines
727 B
YAML

on:
workflow_run:
workflows:
- "Analyze and test"
- "HTML email display"
types:
- completed
name: Test Reports
permissions:
contents: read
jobs:
reports:
permissions:
contents: read
actions: read
checks: write
name: Upload test reports
# superseded runs are cancelled by concurrency; nothing to report
if: github.event.workflow_run.conclusion != 'cancelled'
runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@d1b5dff021aa968b288b02285a8bf47471c5928a # v3.2.0
with:
artifact: /test-reports-(.*)/
name: Flutter Tests - $1
path: "*.json"
reporter: flutter-json
only-summary: "true"