diff --git a/.github/workflows/e2e-tests.yaml b/.github/workflows/e2e-tests.yaml new file mode 100644 index 000000000..e1a8ab83b --- /dev/null +++ b/.github/workflows/e2e-tests.yaml @@ -0,0 +1,25 @@ +name: End-to-end tests +on: + deployment_status: +jobs: + run-e2e-tests: + name: Run + runs-on: ubuntu-latest + defaults: + run: + working-directory: frontend + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version-file: ./frontend/.nvmrc + - name: Install dependencies + run: | + npm ci + - name: Run end-to-end tests via Cypress + env: + PUBLIC_URL: ${{ github.event.deployment_status.target_url }} + run: | + npm run test-only