From 676076f2654be33df1048efd60638e898a2e5ff5 Mon Sep 17 00:00:00 2001 From: Matt Ferraro Date: Sun, 24 Mar 2024 20:28:45 -0400 Subject: [PATCH] add playwright tests --- .github/workflows/e2e-tests.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/e2e-tests.yml diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml new file mode 100644 index 00000000..61bfb06f --- /dev/null +++ b/.github/workflows/e2e-tests.yml @@ -0,0 +1,16 @@ +name: e2e Tests + +on: + deployment_status: +jobs: + run-e2es: + if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install dependencies + run: npm ci && npx playwright install --with-deps + - name: Run tests + run: npx playwright test + env: + BASE_URL: ${{ github.event.deployment_status.environment_url }}