Skip to content

Commit 217c477

Browse files
committed
chore
1 parent 2eeb931 commit 217c477

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/actions/e2e-tests-contracts/action.yaml

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: 'E2E Contract Tests'
22

33
inputs:
4+
ghToken:
5+
description: Github TOKEN
6+
required: true
47
providerUrl:
58
description: Provider URL (e.g. https://testnet.fuel.network/v1/graphql)
69
required: true
@@ -24,23 +27,28 @@ runs:
2427
- uses: FuelLabs/github-actions/setups/docker@master
2528
with:
2629
username: ${{ github.repository_owner }}
27-
password: ${{ secrets.GITHUB_TOKEN }}
30+
password: ${{ inputs.ghToken }}
2831

2932
- name: Run PNPM install
3033
id: pnpm-cache
34+
shell: bash
3135
run:
3236
pnpm recursive install --frozen-lockfile
3337

3438
- name: Start Test Node
39+
shell: bash
3540
run: pnpm node:up
3641

3742
- name: Generate .env app
43+
shell: bash
3844
run: cp packages/app/.env.example packages/app/.env
3945

4046
- name: Generate .env e2e-contracts
47+
shell: bash
4148
run: cp packages/e2e-contract-tests/.env.example packages/e2e-contract-tests/.env
4249

4350
- name: Build Application
51+
shell: bash
4452
run: pnpm build:all
4553
env:
4654
## increase node.js m memory limit for building
@@ -49,15 +57,18 @@ runs:
4957
NODE_ENV: test
5058

5159
- name: Build & Deploy Contracts
60+
shell: bash
5261
# if: !inputs.packages
5362
run: pnpm deploy:contracts
5463
working-directory: ./packages/e2e-contract-tests
5564

5665
# E2E tests running with Playwright
5766
- name: Install Playwright Browsers
67+
shell: bash
5868
run: npx playwright install --with-deps chromium
5969

6070
- name: Run E2E Contract Tests
71+
shell: bash
6172
run: xvfb-run --auto-servernum -- pnpm test:e2e:contracts
6273
env:
6374
NODE_ENV: test
@@ -75,4 +86,5 @@ runs:
7586
retention-days: 30
7687

7788
- name: Stop Test Node
89+
shell: bash
7890
run: pnpm node:clean

.github/workflows/pr-tests.yml

+1
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ jobs:
118118
- name: Run E2E Contract Tests
119119
uses: ./.github/actions/e2e-tests-contracts
120120
with:
121+
ghToken: ${{ secrets.GITHUB_TOKEN }}
121122
providerUrl: "http://localhost:4000/v1/graphql"
122123
masterMnemonic: ${{ secrets.VITE_MASTER_WALLET_MNEMONIC }}
123124
genesisSecret: "0xa449b1ffee0e2205fa924c6740cc48b3b473aa28587df6dab12abc245d1f5298"

0 commit comments

Comments
 (0)