Skip to content

Commit 0a93c72

Browse files
committed
chore(e2e): add github secret to e2e github workflow
Secret key helps to install composer dependecies.
1 parent b9d8aa8 commit 0a93c72

File tree

1 file changed

+23
-18
lines changed

1 file changed

+23
-18
lines changed

.github/workflows/e2e.yml

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,36 @@ jobs:
1212
e2e:
1313
runs-on: ubuntu-latest
1414

15-
steps:
16-
- name: Checkout
17-
uses: actions/checkout@v4
15+
env:
16+
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.COMPOSER_TOKEN }}"}}'
1817

19-
- name: Setup Node.js
20-
uses: actions/setup-node@v3
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
with:
22+
submodules: 'true'
2123

22-
- name: Setup
23-
run: composer install --no-dev && npm install
24+
- name: Install dependencies
25+
run: |
26+
composer install --no-dev --no-scripts
27+
composer run strauss-release
28+
npm install --legacy-peer-deps
2429
25-
- name: Build Project
26-
run: npm run build
30+
- name: Build plugin
31+
run: npm run build
2732

28-
- name: Install Playwright Browsers
29-
run: npx playwright install chromium
33+
- name: Install Playwright Browsers
34+
run: npx playwright install chromium
3035

31-
- name: Setup WP environment
32-
run: npm run env:start
36+
- name: Setup WP environment
37+
run: npm run env:start
3338

34-
- name: Run E2E Test
35-
run: npm run test:e2e
39+
- name: Run E2E Test
40+
run: npm run test:e2e
3641

37-
- uses: actions/upload-artifact@v4
38-
if: always()
39-
with:
42+
- uses: actions/upload-artifact@v4
43+
if: always()
44+
with:
4045
name: E2E Test Report
4146
path: tests/e2e/test-results/report
4247
retention-days: 2

0 commit comments

Comments
 (0)