File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+
2+ name : " Copilot Setup Steps"
3+
4+ # See https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/customize-the-agent-environment
5+
6+ # Automatically run the setup steps when they are changed to allow for easy validation, and
7+ # allow manual testing through the repository's "Actions" tab
8+ on :
9+ workflow_dispatch :
10+ push :
11+ paths :
12+ - .github/workflows/copilot-setup-steps.yml
13+ pull_request :
14+ paths :
15+ - .github/workflows/copilot-setup-steps.yml
16+
17+ permissions : {}
18+
19+ jobs :
20+ # The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
21+ copilot-setup-steps :
22+ runs-on : ubuntu-24.04
23+
24+ # Install PostgreSQL via a docker container.
25+ # It's better to do this rather than e.g. use a testcontainer, because then the agent can reuse the same container
26+ # and instance of PostgreSQL rather than have to start it up each time it needs to iterate and run a test.
27+ services :
28+ postgres :
29+ image : postgis/postgis:latest
30+ ports :
31+ - 5432:5432
32+ options : >-
33+ --health-cmd pg_isready
34+ --health-interval 10s
35+ --health-timeout 5s
36+ --health-retries 5
37+
38+ steps :
39+ - name : Export connection string for the agent's session
40+ run : echo "Test__Npgsql__DefaultConnection=Server=localhost;Port=5432;Database=postgres;SSL Mode=disable" >> "$GITHUB_ENV"
You can’t perform that action at this time.
0 commit comments