ci: Add reusable setup action and copilot-setup-steps.yml workflow#115
Merged
ci: Add reusable setup action and copilot-setup-steps.yml workflow#115
Conversation
Copilot
AI
changed the title
[WIP] Add copilot-setup-steps.yml for agent environment setup
Add copilot-setup-steps.yml for agent environment configuration
Dec 28, 2025
Owner
|
@copilot Also for the Dart SDK, can't you use the Dart GitHub action? |
Copilot stopped work on behalf of
exaby73 due to an error
December 28, 2025 05:44
Owner
|
@copilot Here's an example of the setup steps from your own docs 🤦 name: "Copilot Setup Steps"
# Automatically run the setup steps when they are changed to allow for easy validation, and
# allow manual testing through the repository's "Actions" tab
on:
workflow_dispatch:
push:
paths:
- .github/workflows/copilot-setup-steps.yml
pull_request:
paths:
- .github/workflows/copilot-setup-steps.yml
jobs:
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
copilot-setup-steps:
runs-on: ubuntu-latest
# Set the permissions to the lowest permissions possible needed for your steps.
# Copilot will be given its own token for its operations.
permissions:
# If you want to clone the repository as part of your setup steps, for example to install dependencies, you'll need the `contents: read` permission. If you don't clone the repository in your setup steps, Copilot will do this for you automatically after the steps complete.
contents: read
# You can define any steps you want, and they will run before the agent starts.
# If you do not check out your code, Copilot will do this for you.
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- name: Install JavaScript dependencies
run: npm ci |
Contributor
Author
Copilot
AI
changed the title
Add copilot-setup-steps.yml for agent environment configuration
Add copilot-setup-steps.yml workflow for agent environment configuration
Dec 28, 2025
exaby73
requested changes
Dec 28, 2025
Owner
|
@copilot rebase with main and also please only run the |
Contributor
Author
Co-authored-by: exaby73 <50555895+exaby73@users.noreply.github.com>
Co-authored-by: exaby73 <50555895+exaby73@users.noreply.github.com>
Co-authored-by: exaby73 <50555895+exaby73@users.noreply.github.com>
Co-authored-by: exaby73 <50555895+exaby73@users.noreply.github.com>
Co-authored-by: exaby73 <50555895+exaby73@users.noreply.github.com>
5e23d65 to
7fbfff2
Compare
Owner
|
@copilot Can you update other workflows to use the same installation steps for dpk? |
Co-authored-by: exaby73 <50555895+exaby73@users.noreply.github.com>
Contributor
Author
Co-authored-by: exaby73 <50555895+exaby73@users.noreply.github.com>
Copilot
AI
changed the title
ci: Add copilot-setup-steps.yml workflow for agent environment configuration
ci: Add reusable setup action and copilot-setup-steps.yml workflow
Dec 28, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Defines a reusable composite action for setting up the Luthor development environment and creates a GitHub Actions workflow for GitHub Copilot agent setup. All existing workflows have been updated to use the new reusable action.
Changes
Added
.github/actions/setup-luthor/action.yml- a reusable composite action that:dart-lang/setup-dart@v1dart install dpk(recommended for Dart 3.10+)$HOME/.local/state/Dart/install/binto$GITHUB_PATHto make dpk available in subsequent stepsdpk getAdded
.github/workflows/copilot-setup-steps.yml- a GitHub Actions workflow that:setup-luthoractioncopilot-setup-steps(required by GitHub Copilot)contents: read(minimal permissions)workflow_dispatchmainbranch when the workflow file changesUpdated all existing workflows to use the reusable action:
.github/workflows/analyze.yml- Static analysis workflow.github/workflows/unit_tests.yml- Unit tests workflow.github/workflows/format.yml- Code formatting workflowBenefits
The reusable action and workflows follow the standard GitHub Actions best practices and align with the setup instructions in
.github/copilot-instructions.md.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.