diff --git a/.github/workflows/ci.linting.yml b/.github/workflows/ci.linting.yml new file mode 100644 index 00000000..193fa6b0 --- /dev/null +++ b/.github/workflows/ci.linting.yml @@ -0,0 +1,30 @@ +name: "CI: Linting" + +on: + pull_request: + branches: [main] + push: + branches: [main] + schedule: + - cron: '0 0 * * *' + +jobs: + spotless: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4.2.2 + with: + fetch-depth: 0 + - name: Setup Java + uses: actions/setup-java@v2 + with: + distribution: 'temurin' + java-version: '11' + cache: 'gradle' + + - name: Run Spotless + run: | + cd skaha + ./gradlew clean spotlessCheck +