forked from Anvil-Dev/AnvilCraft
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (28 loc) · 923 Bytes
/
style_check.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
name: Style Check in CI
on:
push:
branches:
- releases/**
pull_request:
branches:
- releases/**
jobs:
checkstyle:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3.1.0
- name: Setup Java 17
uses: actions/setup-java@v3.6.0
with:
distribution: zulu
java-version: 17
- uses: reviewdog/action-setup@v1
with:
reviewdog_version: latest
- name: download checkstyle
run: curl -o checkstyle.jar -L https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.15.0/checkstyle-10.15.0-all.jar
- name: checkstyle
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: java -jar checkstyle.jar -c style.xml -f xml common/src fabric/src forge/src | reviewdog -f=checkstyle -name="Checkstyle" -reporter=github-check -level=warning