build: checkstyle in another workflow.

This commit is contained in:
huanghongxun
2021-09-13 15:45:41 +08:00
parent c65ef8107d
commit 08269b7ce9
2 changed files with 23 additions and 4 deletions

23
.github/workflows/check-style.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: Check Translations
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
distribution: 'zulu'
java-version: '11'
java-package: jdk+fx
- name: Check style main
run: ./gradlew checkstyleMain
- name: Check style test
run: ./gradlew checkstyleTest

View File

@@ -24,7 +24,3 @@ jobs:
with:
name: HMCL
path: HMCL/build/libs
- name: Check style main
run: ./gradlew checkstyleMain
- name: Check style test
run: ./gradlew checkstyleTest