From 08269b7ce91688a7c1d64f6ef123e0e636309fba Mon Sep 17 00:00:00 2001 From: huanghongxun Date: Mon, 13 Sep 2021 15:45:41 +0800 Subject: [PATCH] build: checkstyle in another workflow. --- .github/workflows/check-style.yml | 23 +++++++++++++++++++++++ .github/workflows/gradle.yml | 4 ---- 2 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/check-style.yml diff --git a/.github/workflows/check-style.yml b/.github/workflows/check-style.yml new file mode 100644 index 000000000..0273176c0 --- /dev/null +++ b/.github/workflows/check-style.yml @@ -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 diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 2221e74a7..943e53bdc 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -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