File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 1- name : Landing Page | ENV
1+ name : Landing Page
22
33on :
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+
1921jobs :
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
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
You can’t perform that action at this time.
0 commit comments