Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: "Copilot Setup Steps"

on:
workflow_dispatch:
push:
paths:
- .github/workflows/copilot-setup-steps.yml
pull_request:
paths:
- .github/workflows/copilot-setup-steps.yml

jobs:
copilot-setup-steps:
runs-on: ubuntu-latest
permissions:
contents: read

# You can define any steps you want, and they will run before the agent starts.
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: "22"
cache: "npm"
- name: Install Playwright
run: |
npm install -g playwright-cli
npx playwright install --with-deps chromium
- name: Install NPM deps
run: |
npm ci
- name: Setup PHP with tools
uses: shivammathur/setup-php@v2
with:
php-version: "7.4"
extensions: xdebug, intl, mbstring, curl, gd
tools: php-cs-fixer, phpunit, wp-cli, phpcs, mago, phpstan
- name: Install composer deps
run: composer install --no-progress
- name: Start the WordPress environment via wp-env
run: |
npm run wp-env start
3 changes: 2 additions & 1 deletion .wp-env.override.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
},
"tests": {
"config": {
"WP_DEBUG": false,
"WP_DEBUG": true,
"WP_DEBUG_LOG": true,
"WP_DEBUG_DISPLAY": false,
"ENABLE_OTTER_PRO_DEV": true
},
Expand Down
Loading
Loading