From 5a6a3a56fe0f6799a52c6fef5cef1b7632bfaf65 Mon Sep 17 00:00:00 2001 From: Tim Hostetler <6970899+thostetler@users.noreply.github.com> Date: Tue, 26 Sep 2023 03:40:24 -0400 Subject: [PATCH] add env vars to workflow --- .github/workflows/{playwright.yml => e2e.yml} | 20 ++++++++++++++++--- .github/workflows/unit.yml | 2 +- 2 files changed, 18 insertions(+), 4 deletions(-) rename .github/workflows/{playwright.yml => e2e.yml} (68%) diff --git a/.github/workflows/playwright.yml b/.github/workflows/e2e.yml similarity index 68% rename from .github/workflows/playwright.yml rename to .github/workflows/e2e.yml index 595a9413c..73dd00192 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/e2e.yml @@ -1,9 +1,23 @@ -name: Playwright Tests +name: End-to-end + on: [push, pull_request] + +env: + BASE_CANONICAL_URL: ${{ env.BASE_CANONICAL_URL }} + API_HOST_CLIENT: ${{ env.API_HOST_CLIENT }} + API_HOST_SERVER: ${{ env.API_HOST_SERVER }} + COOKIE_SECRET: ${{ secrets.COOKIE_SECRET }} + ADS_SESSION_COOKIE_NAME: ${{ env.ADS_SESSION_COOKIE_NAME }} + SCIX_SESSION_COOKIE_NAME: ${{ env.SCIX_SESSION_COOKIE_NAME }} + jobs: test: timeout-minutes: 60 runs-on: ubuntu-latest + strategy: + matrix: + node-version: [ 18 ] + steps: - name: Checkout repo uses: actions/checkout@v3 @@ -33,8 +47,8 @@ jobs: - name: Install Playwright Browsers run: pnpm exec playwright install --with-deps - - name: Run Playwright tests - run: pnpm exec playwright test + - name: Run integration tests + run: pnpm run integration - uses: actions/upload-artifact@v3 if: always() diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 13e69136c..6bb3da8d1 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -1,4 +1,4 @@ -name: Unit Tests +name: Unit on: [push, pull_request] jobs: test: