Skip to content

Commit 3342c8a

Browse files
authored
Add copilot setup steps (#4398)
1 parent 1f6a6fe commit 3342c8a

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Copilot Setup Steps
2+
3+
# This workflow pre-installs dependencies for GitHub Copilot coding agent
4+
# to enable faster and more reliable development in Copilot's ephemeral environment.
5+
# See: https://docs.github.com/en/copilot/customizing-copilot/customizing-the-development-environment-for-copilot-coding-agent
6+
7+
# Automatically run the setup steps when they are changed to allow for easy validation,
8+
# and allow manual testing through the repository's "Actions" tab
9+
on:
10+
push:
11+
paths:
12+
- .github/workflows/copilot-setup-steps.yml
13+
pull_request:
14+
paths:
15+
- .github/workflows/copilot-setup-steps.yml
16+
workflow_dispatch:
17+
18+
permissions:
19+
contents: read
20+
21+
jobs:
22+
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
23+
copilot-setup-steps:
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- name: Checkout code
28+
uses: actions/checkout@v4
29+
30+
- name: Set up JDK for running Gradle
31+
uses: actions/setup-java@v4
32+
with:
33+
distribution: temurin
34+
java-version: 17
35+
36+
- name: Setup Gradle
37+
uses: gradle/actions/setup-gradle@v4
38+
39+
- name: Populate Gradle caches
40+
run: ./gradlew classes testClasses assemble spotlessApply

0 commit comments

Comments
 (0)