@@ -28,12 +28,10 @@ jobs:
28
28
password : ${{ secrets.GITHUB_TOKEN }}
29
29
30
30
- name : Start Test Node
31
- run : pnpm node:up:test
32
-
33
- - name : Graphql Codegen
34
- run : pnpm codegen:app
35
- env :
36
- NODE_ENV : test
31
+ run : pnpm node:up
32
+
33
+ - name : Generate .env
34
+ run : cp packages/app/.env.example packages/app/.env
37
35
38
36
# Unit tests running with JEST
39
37
- name : Find PR number
64
62
base-coverage-file : ${{ env.COVERAGE_FILE }}
65
63
66
64
- name : Stop Test Node
67
- run : pnpm node:clean:test
65
+ run : pnpm node:clean
68
66
69
67
tests-e2e :
70
68
name : E2E Tests
@@ -81,20 +79,17 @@ jobs:
81
79
password : ${{ secrets.GITHUB_TOKEN }}
82
80
83
81
- name : Start Test Node
84
- run : pnpm node:up:test
85
-
86
- - name : Graphql Codegen
87
- run : pnpm codegen:app
88
- env :
89
- NODE_ENV : test
82
+ run : pnpm node:up
83
+
84
+ - name : Generate .env
85
+ run : cp packages/app/.env.example packages/app/.env
90
86
91
87
- name : Build Application
92
- run : pnpm build:test
88
+ run : pnpm build:app
93
89
env :
94
90
# # increase node.js m memory limit for building
95
91
# # with sourcemaps
96
92
NODE_OPTIONS : " --max-old-space-size=4096"
97
- NODE_ENV : test
98
93
99
94
# E2E tests running with Playwright
100
95
- name : Install Playwright Browsers
@@ -113,60 +108,66 @@ jobs:
113
108
retention-days : 30
114
109
115
110
- name : Stop Test Node
116
- run : pnpm node:clean:test
111
+ run : pnpm node:clean
117
112
118
- tests-e2e-contracts :
119
- name : E2E Contract Tests
120
- runs-on : buildjet-4vcpu-ubuntu-2204
121
- steps :
122
- - uses : actions/checkout@v3
123
- - uses : FuelLabs/github-actions/setups/node@master
124
- with :
125
- node-version : 18.14.1
126
- pnpm-version : 8.15.7
127
- - uses : FuelLabs/github-actions/setups/docker@master
128
- with :
129
- username : ${{ github.repository_owner }}
130
- password : ${{ secrets.GITHUB_TOKEN }}
131
-
132
- - name : Run PNPM install
133
- id : pnpm-cache
134
- run :
135
- pnpm recursive install --frozen-lockfile
136
-
137
- - name : Start Test Node
138
- run : pnpm node:up:test
139
-
140
- - name : Build Application
141
- run : pnpm build:all
142
- env :
143
- # # increase node.js m memory limit for building
144
- # # with sourcemaps
145
- NODE_OPTIONS : " --max-old-space-size=4096"
146
- NODE_ENV : test
147
-
148
- - name : Build & Deploy Contracts
149
- run : pnpm deploy:contracts
150
- working-directory : ./packages/e2e-contract-tests
151
-
152
- # E2E tests running with Playwright
153
- - name : Install Playwright Browsers
154
- run : npx playwright install --with-deps chromium
155
-
156
- - name : Run E2E Contract Tests
157
- run : xvfb-run --auto-servernum -- pnpm test:e2e:contracts
158
- env :
159
- NODE_ENV : test
160
-
161
- - uses : actions/upload-artifact@v4
162
- if : always()
163
- with :
164
- name : playwright-report
165
- path : |
166
- packages/app/playwright-report/
167
- packages/app/playwright-html/
168
- retention-days : 30
169
-
170
- - name : Stop Test Node
171
- run : pnpm node:clean:test
113
+ # tests-e2e-contracts:
114
+ # name: E2E Contract Tests
115
+ # runs-on: buildjet-4vcpu-ubuntu-2204
116
+ # steps:
117
+ # - uses: actions/checkout@v3
118
+ # - uses: FuelLabs/github-actions/setups/node@master
119
+ # with:
120
+ # node-version: 18.14.1
121
+ # pnpm-version: 8.15.7
122
+ # - uses: FuelLabs/github-actions/setups/docker@master
123
+ # with:
124
+ # username: ${{ github.repository_owner }}
125
+ # password: ${{ secrets.GITHUB_TOKEN }}
126
+
127
+ # - name: Run PNPM install
128
+ # id: pnpm-cache
129
+ # run:
130
+ # pnpm recursive install --frozen-lockfile
131
+
132
+ # - name: Start Test Node
133
+ # run: pnpm node:up
134
+
135
+ # - name: Generate .env app
136
+ # run: cp packages/app/.env.example packages/app/.env
137
+
138
+ # - name: Generate .env e2e-contracts
139
+ # run: cp packages/e2e-contract-tests/.env.example packages/e2e-contract-tests/.env
140
+
141
+ # - name: Build Application
142
+ # run: pnpm build:all
143
+ # env:
144
+ # ## increase node.js m memory limit for building
145
+ # ## with sourcemaps
146
+ # NODE_OPTIONS: "--max-old-space-size=4096"
147
+ # NODE_ENV: test
148
+
149
+ # - name: Build & Deploy Contracts
150
+ # run: pnpm deploy:contracts
151
+ # working-directory: ./packages/e2e-contract-tests
152
+
153
+ # # E2E tests running with Playwright
154
+ # - name: Install Playwright Browsers
155
+ # run: npx playwright install --with-deps chromium
156
+
157
+ # - name: Run E2E Contract Tests
158
+ # run: xvfb-run --auto-servernum -- pnpm test:e2e:contracts
159
+ # env:
160
+ # NODE_ENV: test
161
+
162
+ # - uses: actions/upload-artifact@v4
163
+ # if: always()
164
+ # with:
165
+ # name: playwright-report
166
+ # path: |
167
+ # packages/app/playwright-report/
168
+ # packages/app/playwright-html/
169
+ # retention-days: 30
170
+
171
+ # - name: Stop Test Node
172
+ # run: pnpm node:clean
172
173
0 commit comments