This fixes the following deprecation warnings in GitHub Actions:
- 'The following actions use a deprecated Node.js version and will be forced to run on node20: github/codeql-action/init@v2, github/codeql-action/autobuild@v2, github/codeql-action/analyze@v2'
- 'CodeQL Action v2 will be deprecated on December 5th, 2024. Please update all occurrences of the CodeQL Action in your workflow files to v3"
Signed-off-by: Haru <haru@dotalux.com>
This fixes the following deprecation warning in GitHub Actions:
- 'The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/checkout@v1'
Signed-off-by: Haru <haru@dotalux.com>
for reasons unknown, the controller workflow was only used by pushes,
while all workflows were triggered separately for pull requests.
now both pushes and pull requests follow the same CI flow, with some
specifics for pushes being handled with ifs
- replacing "github.workflow" replacer with a hardcoded name of the flow
file. "github.workflow" value comes from the caller.
When controller workflow is the one triggering, all flows will get
this as "controller" and tests with the same matrix will conflict and
cancel each other. Hardcoding the flow name allows all of them to run.
- use "_" as separator between matrix values instead of "-" to make it
easier to read flow ids generated by Actions, since our matrix also
uses "-" in its values
pushing a new commit in a PR now stops actions from previous commits
of the same PR, allowing CI to stop testing old code and starting the
new one earlier