1
0
Fork 0
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:
catborise 2026-11-01 23:15:46 +03:00
parent 6434d4cbfe
commit ab15fafe9c
2 changed files with 6 additions and 4 deletions

View file

@ -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:

View file

@ -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: