File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches : [ "main" ]
6
+ pull_request :
7
+ branches : [ "main" ]
8
+
9
+ # cancel previous tests if new commit is pushed to PR branch
10
+ concurrency :
11
+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12
+ cancel-in-progress : true
13
+
14
+ jobs :
15
+ build :
16
+
17
+ runs-on : ubuntu-latest
18
+
19
+ steps :
20
+ - uses : actions/checkout@v4
21
+
22
+ - name : Set up JDK 17
23
+ uses : actions/setup-java@v4
24
+ with :
25
+ java-version : ' 17'
26
+ distribution : ' temurin'
27
+ java-package : jdk
28
+ cache : maven
29
+
30
+ - name : Setup Gradle
31
+ uses : gradle/gradle-build-action@v2.4.2
32
+
33
+ - name : Run tests with Gradle
34
+ uses : gradle/gradle-build-action@v2.4.2
35
+ with :
36
+ # build includes tests
37
+ arguments : |
38
+ build
39
+ --console=plain
40
+ --parallel
41
+ -Dorg.gradle.parallel.intra=true
42
+
43
+ - name : Tests Report
44
+ uses : dorny/test-reporter@v1
45
+ if : success() || failure() # run this step even if previous step failed
46
+ with :
47
+ name : Test Results # Name of the check run which will be created
48
+ path : ' **/build/test-results/test/*.xml' # Path to test results
49
+ reporter : java-junit # Format of test results
50
+ list-suites : ' failed' # Limits which test suites are listed: (*all/failed) *default
51
+ list-tests : ' failed' # Limits which test cases are listed: (*all/failed/none) *default
52
+
You can’t perform that action at this time.
0 commit comments