-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update playwright tests again (#1665)
- Loading branch information
1 parent
0d8e8a8
commit 5bd0469
Showing
19 changed files
with
321 additions
and
445 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,43 @@ | ||
name: Playwright Tests | ||
on: pull_request | ||
name: Playwright | ||
|
||
env: | ||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
TURBO_TEAM: "buildwithfern" | ||
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | ||
FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | ||
WORKOS_API_KEY: ${{ secrets.WORKOS_API_KEY }} | ||
WORKOS_CLIENT_ID: ${{ secrets.WORKOS_CLIENT_ID }} | ||
# HUME_API_KEY: ${{ secrets.HUME_API_KEY }} | ||
PLAYWRIGHT_JSON_OUTPUT_NAME: results.json | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
deployment_url: | ||
type: string | ||
description: "The URL of the deployment to test" | ||
required: true | ||
|
||
jobs: | ||
test: | ||
timeout-minutes: 10 | ||
ete: | ||
runs-on: ubuntu-latest | ||
permissions: write-all # required for the playwright-report-summary action | ||
if: inputs.deployment_url | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install | ||
uses: ./.github/actions/install | ||
- uses: ./.github/actions/install | ||
|
||
- name: Compile and build | ||
run: pnpm turbo compile codegen build | ||
env: | ||
FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | ||
WORKOS_API_KEY: ${{ secrets.WORKOS_API_KEY }} | ||
WORKOS_CLIENT_ID: ${{ secrets.WORKOS_CLIENT_ID }} | ||
- name: Install Fern CLI (used for docs e2e) | ||
run: pnpm i -g fern-api@latest | ||
|
||
- name: Build next bundle | ||
run: cd packages/ui/local-preview-bundle; pnpm turbo build | ||
- name: Fetch domains | ||
run: pnpm vercel-scripts domains.txt ${{ inputs.deployment_url }} | ||
|
||
- name: Install Playwright Browsers | ||
run: pnpm exec playwright install --with-deps | ||
- run: pnpm build | ||
|
||
- name: Install fern-dev API | ||
env: | ||
NPM_TOKEN: ${{ secrets.FERN_NPM_TOKEN }} | ||
FERN_TOKEN: ${{ secrets.FERN_ORG_TOKEN_DEV }} | ||
run: | | ||
npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN | ||
npm install -g @fern-api/fern-api-dev | ||
- name: Install Playwright Browsers | ||
run: pnpm exec playwright install --with-deps --browser=chromium | ||
|
||
- name: Run Playwright tests | ||
run: PLAYWRIGHT_JSON_OUTPUT_NAME=results.json pnpm exec playwright test playwright/fixtures --reporter json | ||
run: pnpm exec playwright test playwright --workers 1 --reporter json | ||
|
||
- uses: daun/playwright-report-summary@v3 | ||
if: always() | ||
with: | ||
report-file: results.json | ||
report-file: $PLAYWRIGHT_JSON_OUTPUT_NAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.