Skip to content

Commit

Permalink
chore: ssr test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers committed May 20, 2024
1 parent 2a392b6 commit 98c58be
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 98c58be

Please sign in to comment.