Skip to content

Try creating temporary .env files for pipeline environment. #4

Try creating temporary .env files for pipeline environment.

Try creating temporary .env files for pipeline environment. #4

Workflow file for this run

name: Playwright Tests
on:
push:
branches: [ main, 80-update-playwright-setup ]
pull_request:
branches: [ main ]
jobs:
test:
timeout-minutes: 10
runs-on: ubuntu-latest
defaults:
run:
working-directory: modules/odr_frontend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: |
npm install -g pnpm
pnpm install
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: Install Task
uses: arduino/setup-task@v2
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Create temp root .env file
working-directory: .
run: |
cat << EOF > .env
POSTGRES_DB=odr_pipeline
POSTGRES_USER=odr_pipeline
POSTGRES_PASSWORD=odr_pipeline
POSTGRES_PORT=35432
[email protected]
PGADMIN_DEFAULT_PASSWORD=pipeline
EOF
- name: Create temp frontend .env file
run: |
cat << EOF > .env
AUTH_SECRET=authpipeline
POSTGRES_DB=odr_pipeline
POSTGRES_USER=odr_pipeline
POSTGRES_PASSWORD=odr_pipeline
POSTGRES_PORT=35432
[email protected]
PGADMIN_DEFAULT_PASSWORD=pipeline
EOF
- name: Run Playwright tests
working-directory: .
run: |
chmod +x run-playwright.sh
./run-playwright.sh
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 7