-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bc07cb9
commit 4adb6b7
Showing
2 changed files
with
65 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |