mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-12 15:04:40 +01:00
Replace Spotless with simple python lint script
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -19,8 +19,6 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Fetch LintRatchet
|
||||
run: git fetch origin LintRatchet:LintRatchet
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
|
||||
12
.github/workflows/build_lint.yml
vendored
12
.github/workflows/build_lint.yml
vendored
@@ -12,8 +12,12 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Fetch LintRatchet
|
||||
run: git fetch origin LintRatchet:LintRatchet
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- name: Run Linter
|
||||
run: python format_whitespace.py
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
@@ -29,8 +33,6 @@ jobs:
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle', 'gradle.properties', '**/*.accesswidener') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gradle-
|
||||
- name: Run Spotless
|
||||
run: ./gradlew spotlessApply
|
||||
- name: Run Gradle
|
||||
run: ./gradlew && ./gradlew jar
|
||||
- name: Upload build
|
||||
@@ -38,7 +40,7 @@ jobs:
|
||||
with:
|
||||
name: Grasscutter
|
||||
path: grasscutter-*.jar
|
||||
- name: Commit any Spotless changes
|
||||
- name: Commit any Linter changes
|
||||
uses: EndBug/add-and-commit@v9
|
||||
with:
|
||||
add: '-u'
|
||||
|
||||
Reference in New Issue
Block a user