Skip to content

Commit

Permalink
fix: cypress test job
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtiti authored Apr 7, 2024
1 parent 72f0258 commit 2f5b8b3
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

test:
name: Lint, Unit Test, and E2E Test
name: Lint, E2E Test
runs-on: ubuntu-latest

steps:
Expand All @@ -68,13 +68,21 @@ jobs:

- name: Run Linter
run: pnpm run lint

- name: Run Build
run: pnpm run build

- name: Start Server for E2E Tests
run: pnpm run start &
env:
PORT: 3000

- run: sleep 30

- name: Cypress E2E Tests
uses: cypress-io/github-action@v2
with:
command: pnpm test
cache-key: ${{ runner.os }}-build-${{ hashFiles('**/pnpm-lock.yaml') }}
install-command: pnpm install --frozen-lockfile
wait-on: 'http://localhost:3000'
wait-on-timeout: 60
install: false

0 comments on commit 2f5b8b3

Please sign in to comment.