64
64
key : v1-${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
65
65
path : |
66
66
${{ env.STORE_PATH }}
67
- ~/.cache/Cypress
68
67
restore-keys : v1-${{ runner.os }}-pnpm-store-
69
68
- name : Install dependencies
70
69
run : pnpm install --shamefully-hoist
@@ -93,62 +92,11 @@ jobs:
93
92
key : v1-${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
94
93
path : |
95
94
${{ env.STORE_PATH }}
96
- ~/.cache/Cypress
97
95
restore-keys : v1-${{ runner.os }}-pnpm-store-
98
96
- name : Install dependencies
99
97
run : pnpm install --shamefully-hoist
100
98
- name : Run linter
101
99
run : pnpm lint
102
- test-e2e-cypress :
103
- env :
104
- NUXT_PUBLIC_FIREBASE_EMULATOR_AUTH : http://127.0.0.1:32775
105
- needs :
106
- - install-dependencies
107
- runs-on : ubuntu-latest
108
- steps :
109
- - name : Checkout the repository
110
- uses : actions/checkout@v4
111
- - name : Install Node
112
- uses : actions/setup-node@v4
113
- with :
114
- node-version : 18
115
- - name : Install pnpm
116
- uses : pnpm/action-setup@v4
117
- with :
118
- run_install : false
119
- - name : Get pnpm store directory
120
- shell : bash
121
- run : |
122
- echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
123
- - name : Setup pnpm cache
124
- uses : actions/cache@v3
125
- with :
126
- key : v1-${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
127
- path : |
128
- ${{ env.STORE_PATH }}
129
- ~/.cache/Cypress
130
- restore-keys : v1-${{ runner.os }}-pnpm-store-
131
- - name : Install dependencies
132
- run : pnpm install --shamefully-hoist
133
- -
uses :
cypress-io/[email protected]
134
- with :
135
- build : pnpm build
136
- config : baseUrl=http://127.0.0.1:8889
137
- install : false
138
- start : |
139
- pnpm firebase:start
140
- pnpm preview
141
- wait-on : ' http://127.0.0.1:8889,http://127.0.0.1:32777'
142
- - uses : actions/upload-artifact@v3
143
- if : failure()
144
- with :
145
- name : cypress-screenshots
146
- path : test/cypress/screenshots
147
- - uses : actions/upload-artifact@v3
148
- if : failure()
149
- with :
150
- name : cypress-videos
151
- path : test/cypress/videos
152
100
test-e2e-playwright :
153
101
needs :
154
102
- install-dependencies
@@ -174,7 +122,6 @@ jobs:
174
122
key : v1-${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
175
123
path : |
176
124
${{ env.STORE_PATH }}
177
- ~/.cache/Cypress
178
125
restore-keys : v1-${{ runner.os }}-pnpm-store-
179
126
- name : Install dependencies
180
127
run : pnpm install --shamefully-hoist
@@ -211,7 +158,6 @@ jobs:
211
158
key : v1-${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
212
159
path : |
213
160
${{ env.STORE_PATH }}
214
- ~/.cache/Cypress
215
161
restore-keys : v1-${{ runner.os }}-pnpm-store-
216
162
- name : Install dependencies
217
163
run : pnpm install --shamefully-hoist
@@ -242,7 +188,6 @@ jobs:
242
188
key : v1-${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
243
189
path : |
244
190
${{ env.STORE_PATH }}
245
- ~/.cache/Cypress
246
191
restore-keys : v1-${{ runner.os }}-pnpm-store-
247
192
- name : Install dependencies
248
193
run : pnpm install --shamefully-hoist
0 commit comments