2022-08-30 15:23:09 +02:00
|
|
|
name: e2e:frontend
|
|
|
|
on: [deployment_status]
|
2021-09-30 11:44:30 +02:00
|
|
|
jobs:
|
|
|
|
e2e:
|
2022-08-29 14:25:11 +02:00
|
|
|
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' && contains(github.event.deployment_status.target_url, 'unleash-monorepo-frontend')
|
2021-09-30 11:44:30 +02:00
|
|
|
runs-on: ubuntu-latest
|
2022-08-30 15:23:09 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
test:
|
|
|
|
- feature/feature.spec.ts
|
|
|
|
- groups/groups.spec.ts
|
|
|
|
- projects/access.spec.ts
|
2023-03-29 13:47:12 +02:00
|
|
|
- projects/overview.spec.ts
|
2022-08-30 15:23:09 +02:00
|
|
|
- segments/segments.spec.ts
|
2023-02-08 10:16:38 +01:00
|
|
|
- import/import.spec.ts
|
2021-09-30 11:44:30 +02:00
|
|
|
steps:
|
|
|
|
- name: Dump GitHub context
|
|
|
|
env:
|
|
|
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
|
|
run: |
|
|
|
|
echo "$GITHUB_CONTEXT"
|
|
|
|
- name: Checkout
|
2023-10-05 10:19:57 +02:00
|
|
|
uses: actions/checkout@v4
|
2021-09-30 11:44:30 +02:00
|
|
|
- name: Run Cypress
|
2023-05-08 10:16:18 +02:00
|
|
|
uses: cypress-io/github-action@v5
|
2022-02-25 10:21:28 +01:00
|
|
|
with:
|
2022-08-29 14:25:11 +02:00
|
|
|
working-directory: frontend
|
2022-04-08 12:34:59 +02:00
|
|
|
env: AUTH_USER=admin,AUTH_PASSWORD=unleash4all
|
2021-09-30 11:44:30 +02:00
|
|
|
config: baseUrl=${{ github.event.deployment_status.target_url }}
|
2022-08-30 15:23:09 +02:00
|
|
|
spec: cypress/integration/${{ matrix.test }}
|