mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-08 19:26:48 +00:00
ci: a pull request's commit is tested once
Both workflows ran on a push to any branch and on its pull request, so every commit of a pull request ran the whole matrix twice, the two runs sharing the runners: a pull request waited about ten minutes for its checks. A push now runs them for master only; a pull request, also one stacked on another, is tested by its pull_request run.
This commit is contained in:
parent
6434d4cbfe
commit
ab15fafe9c
2 changed files with 6 additions and 4 deletions
5
.github/workflows/linter.yml
vendored
5
.github/workflows/linter.yml
vendored
|
|
@ -1,10 +1,11 @@
|
|||
name: Lint
|
||||
|
||||
# a branch with a pull request (also one stacked on another) is tested by its
|
||||
# pull_request run; push runs for every branch tested each commit twice
|
||||
on:
|
||||
push:
|
||||
branches: ['**']
|
||||
pull_request:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
|
||||
# the jobs only read the code
|
||||
permissions:
|
||||
|
|
|
|||
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
|
|
@ -1,10 +1,11 @@
|
|||
name: Test Suite
|
||||
|
||||
# a branch with a pull request (also one stacked on another) is tested by its
|
||||
# pull_request run; push runs for every branch tested each commit twice
|
||||
on:
|
||||
push:
|
||||
branches: ['**']
|
||||
pull_request:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
|
||||
# the jobs only read the code
|
||||
permissions:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue