-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (29 loc) · 983 Bytes
/
build.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
name: Continuous Integration
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build -PignoreCheckFailures=true -PgithubUsername=${{ github.actor }} -PgithubPassword=${{ secrets.GITHUB_TOKEN }}
- name: Checkstyle
uses: jwgmeligmeyling/checkstyle-github-action@v1.2
with:
path: ./build/reports/checkstyle/*.xml
- name: Test Report
uses: scacap/action-surefire-report@v1.0.9
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
report_paths: ./**/build/test-results/test/*.xml
- name: Archive build output
uses: actions/upload-artifact@v2
with:
name: gradle-build
path: ./**/build/