Skip to content

Commit aef890b

Browse files
authored
Update copilot-setup-steps.yml
Fixes the job name adds the push and pull triggers needed as well as the permission for cloning
1 parent ec33ae6 commit aef890b

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/copilot-setup-steps.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,19 @@ name: Copilot Setup Steps
22

33
on:
44
workflow_dispatch:
5-
# Allow manual triggering for Copilot agent environments
5+
push:
6+
paths:
7+
- .github/workflows/copilot-setup-steps.yml
8+
pull_request:
9+
paths:
10+
- .github/workflows/copilot-setup-steps.yml
611

712
jobs:
8-
setup-environment:
13+
copilot-setup-steps:
914
name: Setup Development Environment
1015
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
1118

1219
steps:
1320
- name: Checkout code
@@ -120,7 +127,7 @@ jobs:
120127
echo "📦 Installation Summary:"
121128
echo "✅ Node.js $(node --version) and npm dependencies installed"
122129
echo "✅ PHP $(php --version | head -n1) and Composer dependencies installed"
123-
echo "✅ Jest tests passed (28 test suites, 484 tests)"
130+
echo "✅ Jest tests were run"
124131
echo "✅ Docker containers ready for PHP testing"
125132
echo "✅ Build system operational (webpack)"
126133
echo ""
@@ -143,4 +150,4 @@ jobs:
143150
echo " - Cypress may need manual setup: npm config set ignore-scripts false && npm run postinstall"
144151
echo " - Docker containers use custom WordPress testing image"
145152
echo " - PHP tests require WordPress installation in container"
146-
echo " - All dependencies cached for faster subsequent runs"
153+
echo " - All dependencies cached for faster subsequent runs"

0 commit comments

Comments
 (0)