-
Notifications
You must be signed in to change notification settings - Fork 8
46 lines (43 loc) · 1.25 KB
/
copilot-setup-steps.yml
File metadata and controls
46 lines (43 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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: "20"
cache: "npm"
- name: Install Agent Browser
run: |
npm install -g agent-browser
agent-browser install
- name: Install NPM deps
run: |
npm ci
- name: Install Playwright
run: |
npm install -g playwright-cli
npx playwright install --with-deps chromium
- name: Setup PHP with tools
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"
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