Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinreber committed Aug 25, 2024
1 parent bc07cb9 commit 4adb6b7
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 61 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/generate-env-variables.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
name: Generate Environment Variables
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
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: Set up environment variables
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
run: echo "DATABASE_URL=${{ secrets.DATABASE_URL }}" >> $GITHUB_ENV
- name: Create .env file
run: echo "DATABASE_URL=${{ secrets.DATABASE_URL }}" > .env
- name: Generate Prisma Client
run: npx prisma generate
- name: Start Server
run: npm run dev & npx wait-on http://localhost:5173
- 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: Generate Environment Variables
# jobs:
# test:
# timeout-minutes: 60
# runs-on: ubuntu-latest
# 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: Set up environment variables
# env:
# DATABASE_URL: ${{ secrets.DATABASE_URL }}
# run: echo "DATABASE_URL=${{ secrets.DATABASE_URL }}" >> $GITHUB_ENV
# - name: Create .env file
# run: echo "DATABASE_URL=${{ secrets.DATABASE_URL }}" > .env
# - name: Generate Prisma Client
# run: npx prisma generate
# - name: Start Server
# run: npm run dev & npx wait-on http://localhost:5173
# - 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
62 changes: 33 additions & 29 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,33 @@
# name: Playwright Tests
# on:
# push:
# branches: [main, master]
# pull_request:
# branches: [main, master]
# jobs:
# test:
# timeout-minutes: 60
# runs-on: ubuntu-latest
# 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: Start Server
# run: npm run dev & npx wait-on http://localhost:5173
# - 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: Playwright Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
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: Create .env file
run: echo "DATABASE_URL=${{ secrets.DATABASE_URL }}" > .env
- name: Generate Prisma Client
run: npx prisma generate
- name: Start Server
run: npm run dev & npx wait-on http://localhost:5173
- 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 4adb6b7

Please sign in to comment.