Skip to content

Commit ae5592b

Browse files
committed
build: split integration test and run in parallel
1 parent 3766ae1 commit ae5592b

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/build-and-test.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
with:
2626
java-version: '17'
2727
distribution: 'zulu'
28+
cache: 'gradle'
2829

2930
- name: Cache SonarQube packages
3031
uses: actions/cache@v4
@@ -39,7 +40,7 @@ jobs:
3940
- name: Build & Test with Gradle
4041
env:
4142
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
42-
run: ./gradlew build sonar -Ddb=all
43+
run: ./gradlew test sonar
4344

4445
- name: Upload Test Report
4546
uses: actions/upload-artifact@v4
@@ -71,3 +72,20 @@ jobs:
7172
build/reports/kover/report.xml
7273
title: Code Coverage
7374
update-comment: true
75+
integration-test:
76+
name: Integration tests
77+
runs-on: ubuntu-latest
78+
steps:
79+
- uses: actions/checkout@v4
80+
with:
81+
fetch-depth: 0
82+
83+
- name: Set up JDK 17
84+
uses: actions/setup-java@v4
85+
with:
86+
java-version: '17'
87+
distribution: 'zulu'
88+
cache: 'gradle'
89+
90+
- name: Integration tests
91+
run: ./gradlew integrationTest -Ddb=all

0 commit comments

Comments
 (0)