33 lines
No EOL
969 B
YAML
33 lines
No EOL
969 B
YAML
name: Check formatting
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
concurrency:
|
|
cancel-in-progress: true
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
env:
|
|
HTTP_PROXY: http://6.fsn1-1.forsaken-ashbirds.net:8888
|
|
HTTPS_PROXY: http://6.fsn1-1.forsaken-ashbirds.net:8888
|
|
GRADLE_OPTS: -Dhttp.proxyHost=6.fsn1-1.forsaken-ashbirds.net -Dhttp.proxyPort=8888 -Dhttps.proxyHost=6.fsn1-1.forsaken-ashbirds.net -Dhttps.proxyPort=8888
|
|
|
|
jobs:
|
|
check-formatting:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: https://github.com/actions/setup-java@v4
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: 21
|
|
- uses: https://github.com/gradle/actions/setup-gradle@v4
|
|
- uses: https://code.forgejo.org/actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
- name: Run formatting check
|
|
run: ./gradlew spotlessCheck |