From 98c58be3355963c8cd3c61a1ebd86a800b5f4db7 Mon Sep 17 00:00:00 2001 From: Benny Powers Date: Mon, 20 May 2024 10:43:58 +0300 Subject: [PATCH] chore: ssr test workflow --- .github/workflows/tests.yml | 49 ++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 94905c9022..053d6a51ba 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -90,6 +90,30 @@ jobs: report_paths: test-results/test-results.xml fail_on_failure: true # fail the actions run if the tests failed + ssr: + name: Run SSR Tests (Playwright) + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + # Configures the node version used on GitHub-hosted runners + - name: Configure node version + uses: actions/setup-node@v3 + with: + node-version: '20' + cache: npm + + - name: Install dependencies + run: | + npm ci --prefer-offline + npx playwright install + npm run build + + - name: Run tests + run: npx playwright test -g ssr + + # Validate the build to main was successful; open an issue if not build: name: Compile project runs-on: ubuntu-latest @@ -137,31 +161,6 @@ jobs: id: release-dry run: npm run prepublishOnly -ws --if-present - ssr: - name: Run SSR Tests (Playwright) - needs: - - build - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - # Configures the node version used on GitHub-hosted runners - - name: Configure node version - uses: actions/setup-node@v3 - with: - node-version: '20' - cache: npm - - - name: Install dependencies - run: | - npm ci --prefer-offline - npx playwright install - - - name: Run tests - run: npx playwright test -g ssr - - # Validate the build to main was successful; open an issue if not validate: name: Validate successful build on main needs: