From 0873e72d463f2a75014556af79daa83cee404a3d 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 | 49 ++++++++++++++++++++++++++++++++ 1 file changed, 49 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..cacbb5922 --- /dev/null +++ b/.github/workflows/e2e-tests.yaml @@ -0,0 +1,49 @@ +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: Dump GitHub context + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + run: echo "$GITHUB_CONTEXT" + - name: Dump job context + env: + JOB_CONTEXT: ${{ toJson(job) }} + run: echo "$JOB_CONTEXT" + - name: Dump steps context + env: + STEPS_CONTEXT: ${{ toJson(steps) }} + run: echo "$STEPS_CONTEXT" + - name: Dump runner context + env: + RUNNER_CONTEXT: ${{ toJson(runner) }} + run: echo "$RUNNER_CONTEXT" + - name: Dump strategy context + env: + STRATEGY_CONTEXT: ${{ toJson(strategy) }} + run: echo "$STRATEGY_CONTEXT" + - name: Dump matrix context + env: + MATRIX_CONTEXT: ${{ toJson(matrix) }} + run: echo "$MATRIX_CONTEXT" + - 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