-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: replace Playwright tests workflow reference and add production…
… version (#261)
- Loading branch information
1 parent
2315687
commit 6851290
Showing
4 changed files
with
51 additions
and
8 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: E2E - Playwright Tests (Production) | ||
|
||
env: | ||
HUSKY: 0 | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
playwright: | ||
name: Playwright Tests | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: production | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9.4.0 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.15.0 | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Install Playwright Browsers | ||
run: pnpm exec playwright install --with-deps chromium | ||
working-directory: ./apps/web | ||
env: | ||
PLAYWRIGHT_BROWSERS_PATH: /home/runner/.cache/ms-playwright | ||
|
||
- name: Run Playwright tests | ||
run: pnpm playwright test | ||
working-directory: ./apps/web | ||
env: | ||
PLAYWRIGHT_BROWSERS_PATH: /home/runner/.cache/ms-playwright | ||
TEST_KEY: ${{ secrets.TEST_KEY }} |
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