|
12 | 12 | runs-on: ubuntu-latest |
13 | 13 | timeout-minutes: 30 |
14 | 14 |
|
| 15 | + steps: |
| 16 | + - uses: actions/checkout@v2 |
| 17 | + |
| 18 | + - name: Set up JDK 8 |
| 19 | + uses: actions/setup-java@v2 |
| 20 | + with: |
| 21 | + distribution: zulu |
| 22 | + java-version: 8 |
| 23 | + cache: maven |
| 24 | + |
| 25 | + - name: Grant execute permission for mvnw |
| 26 | + run: chmod +x mvnw |
| 27 | + |
| 28 | + - name: Test with Maven |
| 29 | + run: ./mvnw test -B |
| 30 | + |
| 31 | + - name: Upload reports |
| 32 | + if: failure() |
| 33 | + uses: actions/upload-artifact@v2 |
| 34 | + with: |
| 35 | + name: reports |
| 36 | + path: ./**/target/surefire-reports |
| 37 | + |
| 38 | + test-matrix: |
| 39 | + if: contains(github.event.head_commit.message, '[skip ci]') == false |
| 40 | + runs-on: ubuntu-latest |
| 41 | + timeout-minutes: 30 |
| 42 | + needs: [ test ] |
| 43 | + |
15 | 44 | strategy: |
16 | 45 | matrix: |
17 | | - java: [ 8, 11, 17 ] |
| 46 | + java: [ 11, 17 ] |
18 | 47 | spring-boot-version: [ 2.2.13.RELEASE, 2.3.12.RELEASE, 2.4.12, 2.5.6 ] |
19 | 48 |
|
20 | 49 | steps: |
|
44 | 73 | if: contains(github.event.head_commit.message, '[skip ci]') == false |
45 | 74 | runs-on: ubuntu-latest |
46 | 75 | timeout-minutes: 30 |
| 76 | + needs: [ test ] |
47 | 77 |
|
48 | 78 | steps: |
49 | 79 | - uses: actions/checkout@v2 |
|
59 | 89 | run: chmod +x mvnw |
60 | 90 |
|
61 | 91 | - name: Copy module-info.java |
62 | | - run: cp doma-spring-boot-core/src/module/java/module-info.java doma-spring-boot-core/src/main/java/ && cp doma-spring-boot-autoconfigure/src/module/java/module-info.java doma-spring-boot-autoconfigure/src/main/java/ |
| 92 | + run: | |
| 93 | + cp doma-spring-boot-core/src/module/java/module-info.java doma-spring-boot-core/src/main/java/ && \\ |
| 94 | + cp doma-spring-boot-autoconfigure/src/module/java/module-info.java doma-spring-boot-autoconfigure/src/main/java/ |
63 | 95 |
|
64 | 96 | - name: Test with Maven |
65 | 97 | run: ./mvnw test -B -pl doma-spring-boot-core,doma-spring-boot-autoconfigure -Dmaven.compiler.source=11 -Dmaven.compiler.target=11 |
|
75 | 107 | if: contains(github.event.head_commit.message, '[skip ci]') == false |
76 | 108 | runs-on: ubuntu-latest |
77 | 109 | timeout-minutes: 30 |
| 110 | + needs: [ test ] |
78 | 111 |
|
79 | 112 | steps: |
80 | 113 | - uses: actions/checkout@v2 |
@@ -102,7 +135,7 @@ jobs: |
102 | 135 | deploy: |
103 | 136 | if: github.event_name == 'push' && contains(github.event.head_commit.message, '[skip ci]') == false |
104 | 137 | runs-on: ubuntu-latest |
105 | | - needs: [ test, test-module, test-slf4j-backward-compatible ] |
| 138 | + needs: [ test-matrix, test-module, test-slf4j-backward-compatible ] |
106 | 139 |
|
107 | 140 | steps: |
108 | 141 | - uses: actions/checkout@v2 |
|
0 commit comments