Skip to content

Commit

Permalink
Added playwright env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
iliubinskii committed Jun 23, 2024
1 parent 75b9272 commit 2acd12d
Showing 1 changed file with 29 additions and 16 deletions.
45 changes: 29 additions & 16 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,33 @@ jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
environment: preview
env:
BASE_URL: ${{ vars.BASE_URL }}
JWT_ADMIN_EMAIL: ${{ secrets.JWT_ADMIN_EMAIL }}
JWT_EMAIL: ${{ secrets.JWT_EMAIL }}
JWT_SECRET: ${{ secrets.JWT_SECRET }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: Output environment variables
run: |
echo "CI is $CI"
echo "BASE_URL is $BASE_URL"
echo "JWT_ADMIN_EMAIL is $(printf '%*s' ${#JWT_ADMIN_EMAIL})"
echo "JWT_EMAIL is $(printf '%*s' ${#JWT_EMAIL})"
echo "JWT_SECRET is $(printf '%*s' ${#JWT_SECRET})"
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install chromium --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30

0 comments on commit 2acd12d

Please sign in to comment.