Merge pull request #44 from FastComments/remove-maven-central-workflow #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Lint & compile | |
| runs-on: ubuntu-latest | |
| env: | |
| # The com.fastcomments artifacts are public-read on Repsy, so these are optional; | |
| # they are forwarded if the secrets happen to be configured. | |
| REPSY_USERNAME: ${{ secrets.REPSY_USERNAME }} | |
| REPSY_PASSWORD: ${{ secrets.REPSY_PASSWORD }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x ./gradlew | |
| - name: Spotless (formatting check) | |
| run: ./gradlew spotlessCheck | |
| - name: Android Lint | |
| run: ./gradlew lintDebug | |
| - name: Compile (assemble debug) | |
| run: ./gradlew assembleDebug |