Skip to content

Commit 404d7cd

Browse files
csvirimetacosm
authored andcommitted
ci: support for v4 (#1460)
1 parent 448a5c7 commit 404d7cd

File tree

3 files changed

+23
-11
lines changed

3 files changed

+23
-11
lines changed

.github/workflows/pr.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
pull_request:
1111
paths-ignore:
1212
- 'docs/**'
13-
branches: [ main, v1, v2, next ]
13+
branches: [ main, v1, v2, v3, next ]
1414
workflow_dispatch:
1515
jobs:
1616
check_format_and_unit_tests:
@@ -35,14 +35,7 @@ jobs:
3535
strategy:
3636
matrix:
3737
java: [ 11, 17 ]
38-
kubernetes: ['v1.20.15','v1.21.12', 'v1.22.9', 'v1.23.6', 'v1.24.0' ]
39-
exclude:
40-
- java: 11
41-
kubernetes: 'v1.20.15'
42-
- java: 11
43-
kubernetes: 'v1.21.12'
44-
- java: 11
45-
kubernetes: 'v1.22.9'
38+
kubernetes: [ 'v1.22.13', 'v1.23.10', 'v1.24.4', 'v1.25.0' ]
4639
steps:
4740
- uses: actions/checkout@v3
4841
- name: Set up Java and Maven
@@ -54,7 +47,7 @@ jobs:
5447
- name: Set up Minikube
5548
uses: manusa/actions-setup-minikube@v2.7.0
5649
with:
57-
minikube version: 'v1.25.2'
50+
minikube version: 'v1.26.0'
5851
kubernetes version: ${{ matrix.kubernetes }}
5952
driver: 'docker'
6053
- name: Run integration tests

.github/workflows/release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818
ref: "v2"
1919
- uses: actions/checkout@v3
2020
if: ${{ startsWith(github.event.release.tag_name, 'v3.') }}
21+
with:
22+
ref: "v3"
23+
- uses: actions/checkout@v3
24+
if: ${{ startsWith(github.event.release.tag_name, 'v4.') }}
2125
- name: Set up Java and Maven
2226
uses: actions/setup-java@v3
2327
with:
@@ -29,6 +33,11 @@ jobs:
2933
run: ./mvnw ${MAVEN_ARGS} versions:set -DnewVersion="${RELEASE_VERSION:1}" versions:commit
3034
env:
3135
RELEASE_VERSION: ${{ github.event.release.tag_name }}
36+
- name: change version to release version for bom module
37+
working-directory: ./operator-framework-bom
38+
run: ./mvnw ${MAVEN_ARGS} versions:set -DnewVersion="${RELEASE_VERSION:1}" versions:commit
39+
env:
40+
RELEASE_VERSION: ${{ github.event.release.tag_name }}
3241
- name: Release Maven package
3342
uses: samuelmeuli/action-maven-publish@v1
3443
with:
@@ -54,6 +63,10 @@ jobs:
5463
ref: "v2"
5564
- uses: actions/checkout@v3
5665
if: ${{ startsWith(github.event.release.tag_name, 'v3.') }}
66+
with:
67+
ref: "v3"
68+
- uses: actions/checkout@v3
69+
if: ${{ startsWith(github.event.release.tag_name, 'v4.') }}
5770
- name: Set up Java and Maven
5871
uses: actions/setup-java@v3
5972
with:
@@ -86,4 +99,10 @@ jobs:
8699
if: ${{ startsWith(github.event.release.tag_name, 'v3.' ) }}
87100
with:
88101
github_token: ${{ secrets.GITHUB_TOKEN }}
102+
branch: "v3"
103+
- name: Push changes v4
104+
uses: ad-m/github-push-action@master
105+
if: ${{ startsWith(github.event.release.tag_name, 'v4.' ) }}
106+
with:
107+
github_token: ${{ secrets.GITHUB_TOKEN }}
89108

.github/workflows/snapshot-releases.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
push:
1111
paths-ignore:
1212
- 'docs/**'
13-
branches: [ main, v1, v2, next ]
13+
branches: [ main, v1, v2, v3, next ]
1414
workflow_dispatch:
1515
jobs:
1616
test:

0 commit comments

Comments
 (0)