diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..32ffd88 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + build: + name: Build & test + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v7 + - name: Set up JDK + uses: actions/setup-java@v6 + with: + java-version: 25 + distribution: temurin + - name: Set up Gradle + uses: gradle/actions/setup-gradle@v6 + with: + cache-read-only: ${{ github.ref != 'refs/heads/main' }} + - name: Build + run: ./gradlew build