Comments (3)
I think the issue here is that workflow Analyze Test Results
runs after Validate
workflow completed
running on branch 3.x
:
on:
workflow_run:
workflows: [Validate]
types:
- completed
branches:
- '3.x'
Your Validate
workflow runs for push
events on 3.x
and pull_request
events that target 3.x
:
on:
push:
branches:
- 3.x
pull_request:
branches:
- 3.x
But pull_request
events that target 3.x
actually run on the branch of the respective PR, so they never trigger Validate
for commits in a PR's branch, only push
events do, when a PR is merged into 3.x
.
I recommend you remove
branches:
- '3.x'
from the Analyze Test Results
workflow.
from publish-unit-test-result-action.
For instance, pull request #1872 from mghpcsim:3.x targeting 3.x triggered the Analyze Test Results
workflow, as the pull_request
event runs on branch 3.x
(of the fork): https://github.com/openhpc/ohpc/actions/runs/6236154747 triggering https://github.com/openhpc/ohpc/actions/runs/6236354221.
Any PR with a branch other than 3.x
does not trigger the Analyze Test Results
workflow.
from publish-unit-test-result-action.
Thanks. That makes sense and of course was the problem.
The goal from the line was to only run the analysis if the pull request was opened against the 3.x branch and not if the remote branch is named 3.x.
If I remember it correctly the way publish-unit-test-results works for pull request from forked projects was that we need a job on the default branch that triggers when all tests have finished and the results have been uploaded.
We are running CI also on non default branches and did not want to have failures in the "Actions" tab because a PR against the non default branch was running.
Anyway, we are good. Thanks for taking a look at this.
from publish-unit-test-result-action.
Related Issues (20)
- Remove symbols links HOT 2
- Support Maven Surefire Plugin rerunning flaky tests HOT 7
- Add support for TRX StdOut-Element HOT 3
- Option "check_run" not recognized HOT 3
- Unhandled error that crashes GitHub Actions - .NET with coverlet.cobertura HOT 11
- Publishing json file doesn't work if check_run is set to false HOT 2
- bug: action fails to setup due to `--user` in embedded python for windows HOT 5
- androidTest / Could not find any files for test-results/**/*.xml HOT 7
- `-m: command not found` during `Install Python dependencies` HOT 9
- Windows requirements.txt fail HOT 2
- ERROR: Could not open requirements file: [Errno 2] No such file or directory: '.GITHUB_ACTION_PATH\\..\\python\\requirements.txt' HOT 4
- Add support for python 3.12 HOT 4
- 2.16.0 syntax error HOT 6
- Support per file `test_file_prefix` HOT 1
- Spectral junit report has wrong paths to OpenAPI spec file HOT 3
- Annotations are reported at line 0 and therefore are not display correctly. HOT 3
- Support for forked repositories is compliacted and does not work for me HOT 4
- Is there any possibility of displaying all the test cases with names in Github actions summary
- Windows PowerShelll action fails with "invalid syntax" HOT 2
- Help supporting flaky tests using Gradle
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from publish-unit-test-result-action.