Skip to content

Commit b1a33af

Browse files
authored
Update build.yml
- Fix codecov validation - Run docs steps after linting and build steps Signed-off-by: ascopes <[email protected]>
1 parent 51ff42c commit b1a33af

File tree

1 file changed

+37
-34
lines changed

1 file changed

+37
-34
lines changed

.github/workflows/build.yml

Lines changed: 37 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,40 @@ on:
1313
workflow_dispatch: {}
1414

1515
jobs:
16+
linting:
17+
name: Linting
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/[email protected]
23+
with:
24+
fetch-depth: 2
25+
26+
- name: Initialize Java
27+
uses: actions/[email protected]
28+
with:
29+
distribution: 'zulu'
30+
java-version: 17
31+
cache: 'maven'
32+
33+
- name: Run Maven checks
34+
shell: bash
35+
run: >-
36+
./mvnw -B -U
37+
-DskipTests=true
38+
-Dmaven.main.skip
39+
-Dmaven.jar.skip
40+
-Dmaven.resources.skip
41+
-Dmaven.test.skip
42+
verify
43+
44+
- name: Validate codecov.yml
45+
continue-on-error: false
46+
if: always()
47+
shell: bash
48+
run: curl --fail -I --data-binary @codecov.yml https://codecov.io/validate
49+
1650
build:
1751
name: Build on JDK ${{ matrix.java-version }} (${{ matrix.os-name }})
1852
runs-on: ${{ matrix.os-name }}
@@ -183,43 +217,12 @@ jobs:
183217
chmod -v +x codecov
184218
./codecov -v
185219
186-
linting:
187-
name: Linting
188-
runs-on: ubuntu-latest
189-
190-
steps:
191-
- name: Checkout repository
192-
uses: actions/[email protected]
193-
with:
194-
fetch-depth: 2
195-
196-
- name: Initialize Java
197-
uses: actions/[email protected]
198-
with:
199-
distribution: 'zulu'
200-
java-version: 17
201-
cache: 'maven'
202-
203-
- name: Run Maven checks
204-
shell: bash
205-
run: >-
206-
./mvnw -B -U
207-
-DskipTests=true
208-
-Dmaven.main.skip
209-
-Dmaven.jar.skip
210-
-Dmaven.resources.skip
211-
-Dmaven.test.skip
212-
verify
213-
214-
- name: Validate codecov.yml
215-
continue-on-error: false
216-
if: always()
217-
shell: bash
218-
run: curl --data-binary --fail @codecov.yml https://codecov.io/validate
219-
220220
generate-documentation:
221221
name: Generate documentation
222222
runs-on: ubuntu-latest
223+
needs:
224+
- linting
225+
- build
223226

224227
steps:
225228
- name: Checkout repository

0 commit comments

Comments
 (0)