@@ -8,7 +8,7 @@ permissions:
88
99jobs :
1010
11- formatting :
11+ formatting-and-quick-compile :
1212 runs-on : ubuntu-latest
1313 steps :
1414 - uses : actions/checkout@v2
@@ -25,15 +25,12 @@ jobs:
2525 ${{ runner.os }}-jdk${{ matrix.jdk }}-maven-
2626 - name : Check formatting
2727 run : mvn -B formatter:validate impsort:check xml-format:xml-check
28- - name : Abort all jobs
29- if : failure() # ← fires only when the job is red
30- uses : potiuk/cancel-workflow-runs@master
31- with :
32- cancelMode : self
33- notifyPRCancel : true
34- token : ${{ github.token }}
28+ - name : Quick compile
29+ run : mvn -B install -DskipTests -Pquick
30+
3531
3632 compile :
33+ needs : formatting-and-quick-compile
3734 runs-on : ubuntu-latest
3835 steps :
3936 - uses : actions/checkout@v2
@@ -50,15 +47,10 @@ jobs:
5047 ${{ runner.os }}-jdk${{ matrix.jdk }}-maven-
5148 - name : Compile (mvn clean install)
5249 run : mvn -B clean install -DskipTests
53- - name : Abort all jobs
54- if : failure() # ← fires only when the job is red
55- uses : potiuk/cancel-workflow-runs@master
56- with :
57- cancelMode : self
58- notifyPRCancel : true
59- token : ${{ github.token }}
50+
6051
6152 build :
53+ needs : formatting-and-quick-compile
6254 runs-on : ubuntu-latest
6355 strategy :
6456 fail-fast : true
@@ -88,15 +80,10 @@ jobs:
8880 uses : scacap/action-surefire-report@v1.9.0
8981 with :
9082 check_name : Test report - build - ${{ matrix.jdk }}
91- - name : Abort all jobs
92- if : failure() # ← fires only when the job is red
93- uses : potiuk/cancel-workflow-runs@master
94- with :
95- cancelMode : self
96- notifyPRCancel : true
97- token : ${{ github.token }}
83+
9884
9985 integration-tests :
86+ needs : formatting-and-quick-compile
10087 runs-on : ubuntu-latest
10188 steps :
10289 - uses : actions/checkout@v2
@@ -124,6 +111,7 @@ jobs:
124111 check_name : Test report - integration-tests
125112
126113 slow-tests :
114+ needs : formatting-and-quick-compile
127115 runs-on : ubuntu-latest
128116 steps :
129117 - uses : actions/checkout@v2
@@ -151,6 +139,7 @@ jobs:
151139 check_name : Test report - slow-tests
152140
153141 package-assembly :
142+ needs : formatting-and-quick-compile
154143 runs-on : ubuntu-latest
155144 steps :
156145 - uses : actions/checkout@v2
@@ -169,15 +158,10 @@ jobs:
169158 run : mvn clean && mvn -B -U -T 2C install -Pquick
170159 - name : Package assembly
171160 run : mvn package -Passembly -DskipTests
172- - name : Abort all jobs
173- if : failure() # ← fires only when the job is red
174- uses : potiuk/cancel-workflow-runs@master
175- with :
176- cancelMode : self
177- notifyPRCancel : true
178- token : ${{ github.token }}
161+
179162
180163 e2e :
164+ needs : formatting-and-quick-compile
181165 runs-on : ubuntu-latest
182166 steps :
183167 - uses : actions/checkout@v2
@@ -208,10 +192,4 @@ jobs:
208192 - uses : actions/checkout@v2
209193 - name : check copyright header present
210194 run : scripts/checkCopyrightPresent.sh
211- - name : Abort all jobs
212- if : failure() # ← fires only when the job is red
213- uses : potiuk/cancel-workflow-runs@master
214- with :
215- cancelMode : self
216- notifyPRCancel : true
217- token : ${{ github.token }}
195+
0 commit comments