优化 GitHub Action 工作流 (#4037)
This commit is contained in:
25
.github/workflows/check-codes.yml
vendored
Normal file
25
.github/workflows/check-codes.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Check Codes
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- '**.java'
|
||||
- '**.properties'
|
||||
pull_request:
|
||||
paths:
|
||||
- '**.java'
|
||||
- '**.properties'
|
||||
|
||||
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 Codes
|
||||
run: ./gradlew checkstyleMain checkstyleTest checkTranslations --no-daemon --parallel
|
||||
Reference in New Issue
Block a user