Skip to content

Commit 9c07b6d

Browse files
authored
chore(ci): reduce the combinations in CI (#908)
1 parent 42a7e65 commit 9c07b6d

File tree

1 file changed

+29
-8
lines changed

1 file changed

+29
-8
lines changed

.github/workflows/pr.yml

+29-8
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,48 @@ on:
1111
branches: [ main, v1 ]
1212
workflow_dispatch:
1313
jobs:
14-
build:
14+
check_format_and_unit_tests:
1515
runs-on: ubuntu-latest
16-
strategy:
17-
matrix:
18-
java: [ 11, 17 ]
19-
distribution: [ temurin ]
20-
kubernetes: [ 'v1.17.13','v1.18.20','v1.19.14','v1.20.10','v1.21.4', 'v1.22.1', 'v1.23.0' ]
2116
steps:
2217
- uses: actions/checkout@v2
2318
- name: Set up Java and Maven
2419
uses: actions/setup-java@v2
2520
with:
26-
distribution: ${{ matrix.distribution }}
27-
java-version: ${{ matrix.java }}
21+
distribution: temurin
22+
java-version: 17
2823
cache: 'maven'
2924
- name: Check code format
3025
run: |
3126
./mvnw ${MAVEN_ARGS} formatter:validate -Dconfigfile=$PWD/contributing/eclipse-google-style.xml --file pom.xml
3227
./mvnw ${MAVEN_ARGS} impsort:check --file pom.xml
3328
- name: Run unit tests
3429
run: ./mvnw ${MAVEN_ARGS} -B test --file pom.xml
30+
31+
integration_tests:
32+
runs-on: ubuntu-latest
33+
strategy:
34+
matrix:
35+
java: [ 11, 17 ]
36+
kubernetes: [ 'v1.17.13','v1.18.20','v1.19.14','v1.20.10','v1.21.4', 'v1.22.1', 'v1.23.0' ]
37+
exclude:
38+
- java: 11
39+
kubernetes: 'v1.18.20'
40+
- java: 11
41+
kubernetes: 'v1.19.14'
42+
- java: 11
43+
kubernetes: 'v1.20.10'
44+
- java: 11
45+
kubernetes: 'v1.21.4'
46+
- java: 11
47+
kubernetes: 'v1.22.1'
48+
steps:
49+
- uses: actions/checkout@v2
50+
- name: Set up Java and Maven
51+
uses: actions/setup-java@v2
52+
with:
53+
distribution: temurin
54+
java-version: ${{ matrix.java }}
55+
cache: 'maven'
3556
- name: Set up Minikube
3657
uses: manusa/[email protected]
3758
with:

0 commit comments

Comments
 (0)