mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-13 21:35:21 +00:00
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
name: "Copilot Agent environment setup"
|
|
|
|
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
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup PHP
|
|
uses: pmmp/setup-php-action@3.2.0
|
|
with:
|
|
php-version: 8.3
|
|
install-path: "./bin"
|
|
pm-version-major: 5
|
|
|
|
- name: Restore Composer package cache
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
~/.cache/composer/files
|
|
~/.cache/composer/vcs
|
|
key: "composer-v2-cache-8.3-${{ hashFiles('./composer.lock') }}"
|
|
restore-keys: |
|
|
composer-v2-cache-
|
|
|
|
- name: Install Composer dependencies
|
|
run: composer install --prefer-dist --no-interaction
|
|
|
|
- name: Clone extension stubs
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: pmmp/phpstorm-stubs
|
|
path: extension-stubs
|