Skip to content

Commit

Permalink
build: Run PlayWright against successful deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
iliubinskii committed Jul 8, 2024
1 parent 96a669b commit 44b3848
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/jest.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: Jest Tests
on:
push:
branches: [ develop, main, master ]
pull_request:
branches: [ develop, main, master ]
workflow_dispatch:
jobs:
test:
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
name: Lint
name: Linters
on:
push:
branches: [ develop, main, master ]
pull_request:
branches: [ develop, main, master ]
workflow_dispatch:
jobs:
test:
lint:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
Expand Down
22 changes: 17 additions & 5 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
name: Playwright Tests
name: Deploy and Test
on:
push:
branches: [ develop ]
branches: [ develop, main, master ]
pull_request:
branches: [ main, master ]
branches: [ develop, main, master ]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Deploy to Vercel
uses: amondnet/vercel-action@v25
with:
git-message: ${{ github.event.head_commit.message }}
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ vars.VERCEL_ORG_ID }}
vercel-project-id: ${{ vars.VERCEL_PROJECT_ID }}
test:
timeout-minutes: 60
needs: deploy
runs-on: ubuntu-latest
timeout-minutes: 60
environment: preview
env:
BASE_URL: ${{ vars.BASE_URL }}
BASE_URL: ${{ github.event.deployment_status.target_url }}
JWT_ADMIN_EMAIL: ${{ secrets.JWT_ADMIN_EMAIL }}
JWT_EMAIL: ${{ secrets.JWT_EMAIL }}
JWT_SECRET: ${{ secrets.JWT_SECRET }}
Expand Down

0 comments on commit 44b3848

Please sign in to comment.