Skip to content

Commit 9cce96a

Browse files
committed
TRUNK-6420: Experiment with test matrix
1 parent 4ed7ccc commit 9cce96a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,17 @@ jobs:
2424
- 21
2525
# Current spring version only supports up to java 21
2626
# - 24
27+
isNotPR:
28+
- ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }}
2729
test-profile: ["", "-Pintegration-test -Pskip-default-test", "-Pperformance-test -Pskip-default-test"]
2830
exclude:
2931
- platform: windows-latest
3032
java-version: 21
3133
#- platform: windows-latest
3234
# java-version: 24
35+
# Do not run performance tests on PRs
36+
- test-profile: '-Pperformance-test -Pskip-default-test'
37+
isNotPR: false
3338
runs-on: ${{ matrix.platform }}
3439
steps:
3540
- uses: actions/checkout@v6
@@ -42,8 +47,6 @@ jobs:
4247
- name: Install dependencies
4348
run: mvn clean install -DskipTests=true -D"maven.javadoc.skip"=true --batch-mode --show-version --file pom.xml
4449
- name: Test
45-
# Do not run performance tests on PRs
46-
if: ${{ matrix.test-profile != 'Pperformance-test -Pskip-default-test' || (github.ref == 'refs/heads/main' && github.event_name != 'pull_request') }}
4750
run: mvn test ${{ matrix.test-profile }} --batch-mode --file pom.xml
4851
# this is necessary to populate the environment variables for Coveralls properly
4952
- name: Set branch name and PR number

0 commit comments

Comments
 (0)