2
0

ci(deployment): 👷 Add e2e tests on Vercel deployment

This commit is contained in:
Baptiste Arnaud
2022-01-28 09:54:13 +01:00
parent 73f277fce7
commit 65209c2638
7 changed files with 96 additions and 93 deletions

27
.github/workflows/playwright.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Playwright Tests
on:
deployment_status:
jobs:
test-builder:
timeout-minutes: 60
runs-on: ubuntu-latest
if: ${{ github.event.deployment_status.state == 'success' && contains(github.event.deployment_status.environment, 'builder')}}
steps:
- name: Log Info
run: echo ${{ github.event.deployment_status.target_url }} && echo ${{ github.event.deployment }} && echo ${{ github.event.deployment_status.environment }}
- uses: actions/checkout@v2
- name: Install dependencies
run: yarn
- name: Run tests
run: yarn turbo run test --scope=builder
env:
GOOGLE_REFRESH_TOKEN_TEST: ${{ secrets.GOOGLE_REFRESH_TOKEN_TEST }}
PLAYWRIGHT_BUILDER_TEST_BASE_URL: ${{ github.event.deployment_status.target_url }}
- name: Upload test results
if: always()
uses: actions/upload-artifact@v2
with:
name: playwright-results
path: test-results