forked from Javacord/Javacord
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (33 loc) · 1.17 KB
/
checkstyle.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
name: Codestyle
on:
pull_request:
branches-ignore:
- 'all-contributors/**'
jobs:
checkstyle_job:
runs-on: ubuntu-latest
name: Create checkstyle report
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 8
- uses: gradle/gradle-build-action@v2
- name: Run check style (core)
run: ./gradlew javacord-core:checkstyleMain
continue-on-error: true
- name: Run check style (api)
run: ./gradlew javacord-api:checkstyleMain
continue-on-error: true
- name: Setup Reviewdog
uses: reviewdog/action-setup@v1
- name: Run reviewdog
run: cat javacord-core/build/reports/checkstyle/main.xml \
| reviewdog -f=checkstyle -name="Check style (core)" -reporter=github-pr-check -filter-mode="nofilter" \
&& cat javacord-api/build/reports/checkstyle/main.xml \
| reviewdog -f=checkstyle -name="Check style (api)" -reporter=github-pr-check -filter-mode="nofilter"
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}