Skip to content

Commit 64c182f

Browse files
Copilotruudk
andauthored
Add copilot-setup-steps.yml for GitHub Copilot environment customization (#4)
* Initial plan * Add copilot-setup-steps.yml for GitHub Copilot environment setup Co-authored-by: ruudk <104180+ruudk@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ruudk <104180+ruudk@users.noreply.github.com>
1 parent 8e69b93 commit 64c182f

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/copilot-setup-steps.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# GitHub Copilot Environment Setup
2+
# This file defines the steps to set up the development environment for GitHub Copilot
3+
# to better assist with this PHP code generation library.
4+
#
5+
# Based on the CI workflow (.github/workflows/ci.yml) to ensure consistency
6+
# between the development environment and CI pipeline.
7+
8+
# Setup steps that install dependencies and tools needed for this project
9+
steps:
10+
- name: Setup PHP 8.4
11+
uses: shivammathur/setup-php@v2
12+
with:
13+
php-version: '8.4'
14+
coverage: none
15+
tools: composer
16+
17+
- name: Cache Composer packages
18+
uses: actions/cache@v4
19+
with:
20+
path: vendor
21+
key: ${{ runner.os }}-php-8.4-${{ hashFiles('**/composer.lock') }}
22+
restore-keys: |
23+
${{ runner.os }}-php-8.4-
24+
25+
- name: Install dependencies
26+
run: composer install --prefer-dist --no-progress
27+
28+
- name: Verify development tools are available
29+
run: |
30+
# Ensure all tools from the CI pipeline are ready
31+
vendor/bin/composer-dependency-analyser --version
32+
vendor/bin/php-cs-fixer --version
33+
vendor/bin/phpstan --version
34+
vendor/bin/phpunit --version
35+
composer normalize --version

0 commit comments

Comments
 (0)