Skip to content

Use develocity build cache in PRs and local builds #45

Use develocity build cache in PRs and local builds

Use develocity build cache in PRs and local builds #45

# Custom setup steps for GitHub Copilot coding agent to speed up Copilot's work on coding tasks
name: "Copilot Setup Steps"
on:
pull_request:
paths:
- .github/workflows/copilot-setup-steps.yml
push:
paths:
- .github/workflows/copilot-setup-steps.yml
workflow_dispatch:
permissions:
contents: read
jobs:
copilot-setup-steps: # Job name required by GitHub Copilot coding agent
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Set up JDK for running Gradle
uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e # v5.1.0
with:
distribution: temurin
java-version: 21
- name: Set up gradle
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
- name: Build project and download dependencies
run: ./gradlew build -x test
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
GITHUB_TOKEN: ${{ github.token }}