-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Comment out current Playwright Testing job in github action and creat…
…e new one
- Loading branch information
1 parent
97c7ebf
commit 37b1b7c
Showing
3 changed files
with
60 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: e2e tests | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- develop | ||
|
||
jobs: | ||
test_setup: | ||
name: Test setup | ||
runs-on: ubuntu-latest | ||
outputs: | ||
prevuew_url: ${{ steps.waitForVercelPreviewDeployment.outputs.url }} | ||
steps: | ||
- name: Wait for Vercel Preview | ||
uses: patrickedqvist/[email protected] | ||
id: waitForVercelPreviewDeployment | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
max_timeout: 600 | ||
|
||
test_e2e: | ||
needs: tests_setup | ||
name: Playwright tests | ||
timeout-minutes: 5 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Prepare testing env | ||
uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with | ||
node-version: "14" | ||
- run: npm ci | ||
- run: npx playwright install --with-deps | ||
- name: Run tests | ||
run: npm run test:e2e | ||
env: | ||
PLAYWRIGHT_TEST_BASE_URL: ${{ needs.test_setup.outputs.preview_url }} |
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