1
1
name : ' E2E Contract Tests'
2
2
3
3
inputs :
4
+ ghToken :
5
+ description : Github TOKEN
6
+ required : true
4
7
providerUrl :
5
8
description : Provider URL (e.g. https://testnet.fuel.network/v1/graphql)
6
9
required : true
@@ -24,23 +27,28 @@ runs:
24
27
- uses : FuelLabs/github-actions/setups/docker@master
25
28
with :
26
29
username : ${{ github.repository_owner }}
27
- password : ${{ secrets.GITHUB_TOKEN }}
30
+ password : ${{ inputs.ghToken }}
28
31
29
32
- name : Run PNPM install
30
33
id : pnpm-cache
34
+ shell : bash
31
35
run :
32
36
pnpm recursive install --frozen-lockfile
33
37
34
38
- name : Start Test Node
39
+ shell : bash
35
40
run : pnpm node:up
36
41
37
42
- name : Generate .env app
43
+ shell : bash
38
44
run : cp packages/app/.env.example packages/app/.env
39
45
40
46
- name : Generate .env e2e-contracts
47
+ shell : bash
41
48
run : cp packages/e2e-contract-tests/.env.example packages/e2e-contract-tests/.env
42
49
43
50
- name : Build Application
51
+ shell : bash
44
52
run : pnpm build:all
45
53
env :
46
54
# # increase node.js m memory limit for building
@@ -49,15 +57,18 @@ runs:
49
57
NODE_ENV : test
50
58
51
59
- name : Build & Deploy Contracts
60
+ shell : bash
52
61
# if: !inputs.packages
53
62
run : pnpm deploy:contracts
54
63
working-directory : ./packages/e2e-contract-tests
55
64
56
65
# E2E tests running with Playwright
57
66
- name : Install Playwright Browsers
67
+ shell : bash
58
68
run : npx playwright install --with-deps chromium
59
69
60
70
- name : Run E2E Contract Tests
71
+ shell : bash
61
72
run : xvfb-run --auto-servernum -- pnpm test:e2e:contracts
62
73
env :
63
74
NODE_ENV : test
75
86
retention-days : 30
76
87
77
88
- name : Stop Test Node
89
+ shell : bash
78
90
run : pnpm node:clean
0 commit comments