From 6b970dc66497c72d15b318d23e3cba12f7f582bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krys=CC=8Ctof=20Korb?= Date: Sun, 3 Sep 2023 17:08:12 +0200 Subject: [PATCH] Add GitHub Actions workflow --- .github/workflows/e2e-tests.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/e2e-tests.yaml 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