Skip to content

Commit 5b76127

Browse files
authored
fix: fixed yml for landing page tests (#1799)
1 parent 84fdbb9 commit 5b76127

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
1-
name: Landing Page | ENV
1+
name: Landing Page
22

33
on:
44
workflow_dispatch:
55
inputs:
66
environment:
7-
description: "Choose environment"
7+
description: "Choose staging environment"
88
required: true
99
type: choice
10-
options:
11-
- hoodi.staging
12-
- mainnet.staging
10+
options: [hoodi.staging, mainnet.staging]
1311
tests_ref:
1412
description: "Git ref (branch/tag/SHA) to run tests from"
1513
required: true
1614
default: "main"
1715
type: string
1816

17+
defaults:
18+
run:
19+
working-directory: frontend
20+
1921
jobs:
2022
run-landing-page-tests:
2123
name: Landing Page • ${{ inputs.environment }} • ${{ inputs.tests_ref }}
2224
runs-on: ubuntu-latest
23-
2425
env:
2526
ENV: ${{ inputs.environment }}
2627

2728
steps:
2829
- name: Checkout code (tests ref)
2930
uses: actions/checkout@v4
3031
with:
31-
# This controls which branch/tag/SHA your tests run against.
3232
ref: ${{ inputs.tests_ref }}
3333

3434
- name: Setup Node.js
3535
uses: actions/setup-node@v4
3636
with:
3737
node-version: 22
3838
cache: npm
39+
cache-dependency-path: frontend/package-lock.json
3940

4041
- name: Install dependencies
4142
run: npm ci
4243

4344
- name: Install Playwright browsers
4445
run: npx playwright install --with-deps
4546

46-
# Keep your IF/ELSE block; run with HTML reporter for CI
4747
- name: Run Playwright (@landing-page)
4848
run: |
4949
if [ "${ENV}" = "hoodi.staging" ]; then
@@ -57,5 +57,5 @@ jobs:
5757
uses: actions/upload-artifact@v4
5858
with:
5959
name: playwright-report-${{ inputs.environment }}-${{ inputs.tests_ref }}
60-
path: playwright-report
60+
path: frontend/playwright-report
6161
retention-days: 7

0 commit comments

Comments
 (0)