mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-08-03 19:36:53 -04:00
优化 GitHub Action 工作流 (#4037)
This commit is contained in:
parent
9aa1367823
commit
ffa7afcbab
@ -1,11 +1,13 @@
|
|||||||
name: Check Translations
|
name: Check Codes
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
|
- '**.java'
|
||||||
- '**.properties'
|
- '**.properties'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
|
- '**.java'
|
||||||
- '**.properties'
|
- '**.properties'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -19,5 +21,5 @@ jobs:
|
|||||||
distribution: 'zulu'
|
distribution: 'zulu'
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
java-package: 'jdk+fx'
|
java-package: 'jdk+fx'
|
||||||
- name: Check style test
|
- name: Check Codes
|
||||||
run: ./gradlew checkTranslations --no-daemon
|
run: ./gradlew checkstyleMain checkstyleTest checkTranslations --no-daemon --parallel
|
25
.github/workflows/check-style.yml
vendored
25
.github/workflows/check-style.yml
vendored
@ -1,25 +0,0 @@
|
|||||||
name: Check Style
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- '**.java'
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- '**.java'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Set up JDK 11
|
|
||||||
uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: 'zulu'
|
|
||||||
java-version: '11'
|
|
||||||
java-package: 'jdk+fx'
|
|
||||||
- name: Check style main
|
|
||||||
run: ./gradlew checkstyleMain --no-daemon
|
|
||||||
- name: Check style test
|
|
||||||
run: ./gradlew checkstyleTest --no-daemon
|
|
Loading…
x
Reference in New Issue
Block a user