|
24 | 24 | validate-iac: ${{ steps.check.outputs.validate-iac }} |
25 | 25 | validate-backend: ${{ steps.check.outputs.validate-backend }} |
26 | 26 | validate-frontend: ${{ steps.check.outputs.validate-frontend }} |
27 | | - validate-e2e: ${{ steps.check.outputs.validate-e2e }} |
28 | 27 | steps: |
29 | 28 | - uses: actions/checkout@v4 |
30 | 29 |
|
|
41 | 40 | validate-frontend: |
42 | 41 | - 'frontend/**' |
43 | 42 | - '.github/workflows/validate.yml' |
44 | | - validate-e2e: |
45 | | - - 'test/e2e/**' |
46 | | - - '.github/workflows/validate.yml' |
47 | 43 |
|
48 | 44 | validate-iac: |
49 | 45 | needs: detect-changes |
@@ -196,43 +192,3 @@ jobs: |
196 | 192 | - name: Test with vitest |
197 | 193 | run: | |
198 | 194 | cd ./frontend && npm run test -- --run |
199 | | -
|
200 | | - e2e-tests-browserstack: |
201 | | - name: e2e-tests-browserstack |
202 | | - needs: detect-changes |
203 | | - if: needs.detect-changes.outputs.validate-frontend == 'true' || needs.detect-changes.outputs.validate-backend == 'true' || needs.detect-changes.outputs.validate-e2e == 'true' |
204 | | - runs-on: ubuntu-latest |
205 | | - environment: staging |
206 | | - env: |
207 | | - APPT_LOGIN_EMAIL: ${{ secrets.E2E_APPT_STAGE_LOGIN_EMAIL }} |
208 | | - APPT_LOGIN_PWORD: ${{ secrets.E2E_APPT_STAGE_LOGIN_PASSWORD }} |
209 | | - APPT_DISPLAY_NAME: ${{ secrets.E2E_APPT_STAGE_DISPLAY_NAME }} |
210 | | - APPT_MY_SHARE_LINK: ${{ secrets.E2E_APPT_STAGE_MY_SHARE_LINK }} |
211 | | - APPT_BOOKEE_EMAIL: ${{ secrets.E2E_APPT_STAGE_BOOKEE_EMAIL }} |
212 | | - steps: |
213 | | - - uses: actions/checkout@v4 |
214 | | - |
215 | | - - uses: actions/setup-node@v4 |
216 | | - with: |
217 | | - node-version: 20 |
218 | | - cache: 'npm' |
219 | | - cache-dependency-path: 'test/e2e/package-lock.json' |
220 | | - |
221 | | - - name: Install dependencies |
222 | | - run: | |
223 | | - cd ./test/e2e |
224 | | - npm install |
225 | | -
|
226 | | - - name: BrowserStack Env Setup |
227 | | - uses: browserstack/github-actions/setup-env@master |
228 | | - with: |
229 | | - username: ${{ secrets.BROWSERSTACK_USERNAME }} |
230 | | - access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} |
231 | | - project-name: 'Thunderbird Appointment' |
232 | | - build-name: 'E2E Tests: BUILD_INFO' |
233 | | - |
234 | | - - name: Run E2E Tests on Browserstack |
235 | | - run: | |
236 | | - cd ./test/e2e |
237 | | - cp .env.stage.example .env |
238 | | - npm run e2e-test-browserstack-gha |
0 commit comments