chore: added multiple browser support (#4161)

* chore: added multiple browser support

* chore: use matrix for parallel jobs

* fix: browsername
This commit is contained in:
Christian Jakob
2022-08-10 17:24:19 +02:00
committed by GitHub
parent 670d107945
commit 33e4c5c151

View File

@@ -12,6 +12,9 @@ on:
jobs: jobs:
test: test:
strategy:
matrix:
browser: [firefox, chrome]
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
env: env:
ZITADEL_IMAGE_REGISTRY: 'ghcr.io/zitadel/zitadel' ZITADEL_IMAGE_REGISTRY: 'ghcr.io/zitadel/zitadel'
@@ -29,14 +32,14 @@ jobs:
with: with:
driver: docker driver: docker
install: true install: true
- name: Test - name: Test ${{ matrix.browser }}
run: docker compose run e2e run: docker compose run e2e --browser ${{ matrix.browser }}
working-directory: e2e working-directory: e2e
- name: Archive production tests - name: Archive production tests ${{ matrix.browser }}
if: always() if: always()
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: production-tests name: production-tests-${{ matrix.browser }}
path: | path: |
e2e/cypress/results e2e/cypress/results
e2e/cypress/videos e2e/cypress/videos