Skip to content

Commit

Permalink
Add check for DATABASE_URL existence in Playwright workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
NiallJoeMaher committed Jan 8, 2024
1 parent 83006d9 commit 86dcb6c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ jobs:
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
- name: "check is DATABASE_URL exists"
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
run: echo ${{ secrets.DATABASE_URL }} && npx playwright test
if: ${{ env.DATABASE_URL == '' }}
run: echo "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:
Expand Down

0 comments on commit 86dcb6c

Please sign in to comment.