Skip to content

Commit

Permalink
feat(github-actions): added ci for linting code
Browse files Browse the repository at this point in the history
  • Loading branch information
shinybrar committed Nov 6, 2024
1 parent a20e7fc commit 2a52365
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.linting.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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

0 comments on commit 2a52365

Please sign in to comment.