ci: enable workflows for `release/**` branches

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
This commit is contained in:
Hidde Beydals 2023-07-03 16:11:46 +02:00
parent f2857e69dc
commit bb2ab59d5c
No known key found for this signature in database
GPG Key ID: 979F380FC2341744
5 changed files with 14 additions and 10 deletions

View File

@ -2,7 +2,8 @@ name: fuzz
on:
pull_request:
branches:
- main
- 'main'
- 'release/**'
paths-ignore:
- 'CHANGELOG.md'
- 'README.md'

View File

@ -8,7 +8,8 @@ on:
- 'MAINTAINERS'
push:
branches:
- main
- 'main'
- 'release/**'
permissions:
contents: read # for actions/checkout to fetch code
@ -28,8 +29,8 @@ jobs:
**/go.sum
**/go.mod
- name: Enable integration tests
# Only run integration tests for main branch
if: github.ref == 'refs/heads/main'
# Only run integration tests for main and release branches
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/')
run: |
echo 'GO_TAGS=integration' >> $GITHUB_ENV
- name: Setup Kubernetes
@ -63,8 +64,8 @@ jobs:
**/go.sum
**/go.mod
- name: Enable integration tests
# Only run integration tests for main branch
if: github.ref == 'refs/heads/main'
# Only run integration tests for main and release branches
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/')
run: |
echo 'GO_TAGS=integration' >> $GITHUB_ENV
- name: Prepare

View File

@ -2,9 +2,9 @@ name: scan
on:
push:
branches: [ main ]
branches: [ 'main', 'release/**' ]
pull_request:
branches: [ main ]
branches: [ 'main', 'release/**' ]
schedule:
- cron: '18 10 * * 3'

View File

@ -9,7 +9,8 @@ on:
push:
branches:
- main
- 'main'
- 'release/**'
permissions:
contents: read # for actions/checkout to fetch code

View File

@ -9,7 +9,8 @@ on:
push:
branches:
- main
- 'main'
- 'release/**'
permissions:
contents: read # for actions/checkout to fetch code