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: on:
pull_request: pull_request:
branches: branches:
- main - 'main'
- 'release/**'
paths-ignore: paths-ignore:
- 'CHANGELOG.md' - 'CHANGELOG.md'
- 'README.md' - 'README.md'

View File

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

View File

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

View File

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

View File

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