Skip to content

Commit

Permalink
ci(test/e2e): create pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
MFarabi619 committed Aug 6, 2024
1 parent 5183c05 commit 0dfd20e
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions .github/workflows/e2e.yml β†’ .github/workflows/TEST_e2e.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Playwright Tests
name: End-to-End Tests

on:
push:
branches: [main, master]
branches: '*'
pull_request:
branches: [main, master]
branches: '*'

jobs:
test:
timeout-minutes: 60
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -20,32 +20,26 @@ jobs:
with:
fetch-depth: 0 # All history for branches and tags

- name: πŸ“¦ Install pnpm
uses: pnpm/action-setup@v4
- name: 🍞 Install Bun
uses: oven-sh/setup-bun@v2
with:
version: 9

- name: πŸ› οΈ Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: '${{ matrix.node-version }}'
cache: pnpm
bun-version: latest

- name: πŸ“‚ Install Dependencies
run: pnpm i
run: bun install

- name: Install Playwright Browsers
run: pnpm playwright install --with-deps
- name: 🎭 Install Playwright Browsers
run: bun playwright install --with-deps

- name: Run E2E tests
- name: πŸ’€ Run E2E tests
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
NEXTAUTH_URL: ${{ secrets.NEXTAUTH_URL }}
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }}
run: pnpm playwright test
run: bun playwright test

- name: Upload Artifact
- name: πŸ“„ Upload Artifact
uses: actions/upload-artifact@v4
if: always()
with:
Expand Down

0 comments on commit 0dfd20e

Please sign in to comment.