-
Notifications
You must be signed in to change notification settings - Fork 458
/
Copy pathaction.yaml
46 lines (40 loc) · 1.33 KB
/
action.yaml
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: 'E2E Contract Tests'
inputs:
providerUrl:
description: Provider URL (e.g. https://testnet.fuel.network/v1/graphql)
required: true
masterMnemonic:
description: Mnemonic of the master wallet that will fund the tests
required: true
genesisSecret:
description: Secret of genesis to fund the master wallet
required: false
browser:
description: Browser to run tests on (chromium or chrome-beta)
required: true
runs:
using: 'composite'
steps:
# E2E tests running with Playwright
- name: Install Playwright Browsers (${{ inputs.browser }})
shell: bash
run: npx playwright install --with-deps ${{ inputs.browser }}
- name: Run E2E Contract Tests
shell: bash
run: xvfb-run --auto-servernum -- pnpm test:e2e:contracts --project=${{ inputs.browser }}
env:
PORT: 5173
VITE_FUEL_PROVIDER_URL: ${{ inputs.providerUrl }}
VITE_MASTER_WALLET_MNEMONIC: ${{ inputs.masterMnemonic }}
VITE_WALLET_SECRET: ${{ inputs.genesisSecret }}
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report-${{ inputs.browser }}
path: |
packages/app/playwright-report/
packages/app/playwright-html/
retention-days: 30
- name: Stop Test Node
shell: bash
run: pnpm node:clean