Add copilot-setup-steps.yml as GitHub Actions workflow for automated agent environment configuration#382
Conversation
Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
… workflows Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
|
@copilot did you read the doucmentation? from the docs: name: "Copilot Setup Steps" Automatically run the setup steps when they are changed to allow for easy validation, andallow manual testing through the repository's "Actions" tabon: jobs: The job MUST be called
|
…tHub Actions workflow Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
You're right, I apologize for not following the documentation correctly. I've fixed it in commit 44a02db. The file is now properly structured as a GitHub Actions workflow at
|
… is in setup workflow Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
|
There was a problem hiding this comment.
Pull Request Overview
This PR adds automated environment setup for GitHub Copilot agents by creating a dedicated GitHub Actions workflow following GitHub's official documentation for Copilot agent environment customization.
Key Changes:
- Created
copilot-setup-steps.ymlworkflow with proper job naming, triggers, and setup steps for Java 25 and Maven dependencies - Updated
copilot-instructions.mdto reference the automated workflow instead of manual SDKMAN installation instructions
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.github/workflows/copilot-setup-steps.yml |
New GitHub Actions workflow that configures Java 25 (Temurin), caches Maven dependencies, and runs a fast build validation for Copilot agents |
.github/copilot-instructions.md |
Updated Environment Setup section to reference the automated workflow, removing redundant manual SDKMAN installation steps |



Description
Adds automated environment setup for GitHub Copilot agents working on this repository as a proper GitHub Actions workflow.
Resolves #381
Changes
.github/workflows/copilot-setup-steps.yml: Created as a GitHub Actions workflow (following GitHub's official documentation)copilot-setup-steps(required by Copilot to recognize the workflow)workflow_dispatch,push, andpull_requeston file changes for validationcontents: readfor repository checkoutactions/checkout@v5actions/setup-java@v5./mvnw -B clean verify -DskipTeststo compile and cache dependencies without running tests.github/copilot-instructions.md: Streamlined Environment Setup sectionSetup Flow
The workflow can be validated automatically when the file is changed and manually tested through the repository's Actions tab.
Checklist:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.