Skip to content

Commit 44a02db

Browse files
Fix: Move copilot-setup-steps.yml to workflows directory as proper GitHub Actions workflow
Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
1 parent 84391b3 commit 44a02db

3 files changed

Lines changed: 44 additions & 57 deletions

File tree

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ xAPI Java is a library that helps you create applications that send or receive x
2222

2323
## Environment Setup
2424

25-
**Note**: For GitHub Copilot agents, automated environment setup is configured in [copilot-setup-steps.yml](copilot-setup-steps.yml). The setup steps below are for manual configuration.
25+
**Note**: For GitHub Copilot agents, automated environment setup is configured in [copilot-setup-steps.yml](workflows/copilot-setup-steps.yml). The setup steps below are for manual configuration.
2626

2727
### Java Installation with SDKMAN
2828

.github/copilot-setup-steps.yml

Lines changed: 0 additions & 56 deletions
This file was deleted.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# GitHub Copilot Setup Steps for xAPI Java
2+
# This workflow configures the environment for GitHub Copilot agents working on this repository.
3+
# See: https://docs.github.com/en/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/coding-agent/customize-the-agent-environment
4+
5+
name: "Copilot Setup Steps"
6+
7+
# Automatically run the setup steps when they are changed to allow for easy validation, and
8+
# allow manual testing through the repository's "Actions" tab
9+
on:
10+
workflow_dispatch:
11+
push:
12+
paths:
13+
- .github/workflows/copilot-setup-steps.yml
14+
pull_request:
15+
paths:
16+
- .github/workflows/copilot-setup-steps.yml
17+
18+
jobs:
19+
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
20+
copilot-setup-steps:
21+
runs-on: ubuntu-latest
22+
23+
# Set the permissions to the lowest permissions possible needed for your steps.
24+
# Copilot will be given its own token for its operations.
25+
permissions:
26+
# Contents read permission is needed to clone the repository to install dependencies
27+
contents: read
28+
29+
# You can define any steps you want, and they will run before the agent starts.
30+
# If you do not check out your code, Copilot will do this for you.
31+
steps:
32+
- name: Checkout code
33+
uses: actions/checkout@v5
34+
35+
- name: Set up JDK 25
36+
uses: actions/setup-java@v5
37+
with:
38+
java-version: "25"
39+
distribution: "temurin"
40+
cache: maven
41+
42+
- name: Build with Maven
43+
run: ./mvnw -B clean verify -DskipTests --file pom.xml

0 commit comments

Comments
 (0)