-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (38 loc) · 1.24 KB
/
validateCommit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Validate commit
on:
push:
branches: [ master ]
pull_request:
jobs:
validate_format:
name: Validate format
runs-on: ubuntu-latest
steps:
- name: Install xmlstarlet
run: sudo apt-get install -y xmlstarlet
- name: Setup java
uses: actions/setup-java@v1
with:
java-version: 11
- uses: actions/checkout@v2
- name: Prepare maven
# Already run the commands run by the next step to download all requirements.
# Otherwise the log of a failing check is full with log of downloading requirements.
run: ./mvnw -B -f ICGE-build-tools install ; ./mvnw -B formatter:validate || true
- name: Validate format
run: ./scriptsAndTools/checkFormat.sh -v
validate_javadoc:
name: Validate javadoc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup java
uses: actions/setup-java@v1
with:
java-version: 11
- name: Perpare maven
# Already run the commands run by the next step to download all requirements.
# Otherwise the log of a failing check is full with log of downloading requirements.
run: ./mvnw -B compile javadoc:javadoc || true
- name: Check Javadoc
run: ./mvnw -B compile javadoc:javadoc