Restrict branches for which to run tests.

This commit is contained in:
Felix Fontein 2021-11-25 21:21:55 +01:00
parent 656c115697
commit 1deeb9f372
3 changed files with 7 additions and 0 deletions

View file

@ -2,6 +2,9 @@ name: CI
on: on:
# Run CI against all pushes (direct commits, also merged PRs), Pull Requests # Run CI against all pushes (direct commits, also merged PRs), Pull Requests
push: push:
branches:
- main
- stable-*
pull_request: pull_request:
# Run CI once per day (at 06:00 UTC) # Run CI once per day (at 06:00 UTC)
schedule: schedule:

View file

@ -2,6 +2,9 @@ name: extra-tests
on: on:
# Run CI against all pushes (direct commits, also merged PRs), Pull Requests # Run CI against all pushes (direct commits, also merged PRs), Pull Requests
push: push:
branches:
- main
- stable-*
pull_request: pull_request:
# Run CI once per day (at 06:00 UTC) # Run CI once per day (at 06:00 UTC)
# This ensures that even if there haven't been commits that we are still testing against latest version of ansible-test for each ansible-base version # This ensures that even if there haven't been commits that we are still testing against latest version of ansible-test for each ansible-base version

View file

@ -4,6 +4,7 @@ on:
push: push:
branches: branches:
- main - main
- stable-*
pull_request: pull_request:
env: env: