Skip to content

Commit

Permalink
Test env variables on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
NiallJoeMaher authored Jan 8, 2024
1 parent 0e43257 commit b0d9c18
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ name: Playwright Tests
on:
push:
branches: [develop]
pull_request:
pull_request_target:
branches: [develop]
types: [opened, synchronize, reopened, ready_for_review]
jobs:
test:
timeout-minutes: 60
Expand All @@ -17,11 +18,16 @@ jobs:
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: "check is DATABASE_URL exists"
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
if: ${{ env.DATABASE_URL == '' }}
run: echo "The secret \"DATABASE_URL\" has not been made; echo please go to \"settings \> secrets \> actions\" to create it
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
retention-days: 30

0 comments on commit b0d9c18

Please sign in to comment.