Skip to content

Commit

Permalink
add env vars to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
thostetler committed Sep 26, 2023
1 parent 2c61728 commit 5a6a3a5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/playwright.yml → .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
name: Playwright Tests
name: End-to-end

on: [push, pull_request]

env:
BASE_CANONICAL_URL: ${{ env.BASE_CANONICAL_URL }}
API_HOST_CLIENT: ${{ env.API_HOST_CLIENT }}
API_HOST_SERVER: ${{ env.API_HOST_SERVER }}
COOKIE_SECRET: ${{ secrets.COOKIE_SECRET }}
ADS_SESSION_COOKIE_NAME: ${{ env.ADS_SESSION_COOKIE_NAME }}
SCIX_SESSION_COOKIE_NAME: ${{ env.SCIX_SESSION_COOKIE_NAME }}

jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18 ]

steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand Down Expand Up @@ -33,8 +47,8 @@ jobs:
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps

- name: Run Playwright tests
run: pnpm exec playwright test
- name: Run integration tests
run: pnpm run integration

- uses: actions/upload-artifact@v3
if: always()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Unit Tests
name: Unit
on: [push, pull_request]
jobs:
test:
Expand Down

0 comments on commit 5a6a3a5

Please sign in to comment.