Skip to content

Commit

Permalink
Split test files
Browse files Browse the repository at this point in the history
  • Loading branch information
evadecker committed Dec 15, 2023
1 parent 9863e6a commit fecdbf3
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 7 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Test
on:
push:
branches: main
pull_request:
branches: main
env:
PUBLIC_SUPABASE_URL: ${{ secrets.PUBLIC_SUPABASE_URL }}
PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.PUBLIC_SUPABASE_ANON_KEY }}
SPOTIFY_CLIENT_ID: ${{ secrets.SPOTIFY_CLIENT_ID }}
SPOTIFY_CLIENT_SECRET: ${{ secrets.SPOTIFY_CLIENT_SECRET }}
jobs:
test:
runs-on: ubuntu-latest

permissions:
# Required to checkout the code
contents: read
# Required to put a comment into the pull-request
pull-requests: write

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Install dependencies
run: pnpm i

- name: Install Playwright browsers
run: pnpm playwright install --with-deps

- name: Run Playwright tests
run: pnpm test:integration
8 changes: 1 addition & 7 deletions .github/workflows/test.yml → .github/workflows/unit.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: Unit Tests
on:
push:
branches: main
Expand Down Expand Up @@ -50,9 +50,3 @@ jobs:
# Also generate the report if tests are failing
if: always()
uses: davelosert/vitest-coverage-report-action@v2

- name: Install Playwright browsers
run: pnpm playwright install --with-deps

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

0 comments on commit fecdbf3

Please sign in to comment.