name: CI Verification on: push: branches: [ main ] pull_request: branches: [ main ] # Cancel redundant, in-progress runs for the same branch or PR concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: verify: name: Build & Test runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 - name: Set up JDK 21 uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: '21' cache: 'gradle' - name: Verify with Gradle # The 'build' command will compile, run tests, and package the app. # If any step fails, the workflow will fail, protecting your main branch. run: ./gradlew build