Skip to content

Commit

Permalink
ci: build application before running cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
seasick committed Jan 22, 2024
1 parent ec42ec8 commit e0843a1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,16 @@ jobs:
node-version: 21.x
cache: 'npm'

- name: Build application
run: |
npm ci
npm run build
- name: Run e2e tests
uses: cypress-io/github-action@v6
with:
browser: chrome
start: npm run build && npm run test:e2e:ci
start: npm run test:e2e:ci
wait-on: 'http://localhost:8000'
wait-on-timeout: 120

Expand Down

0 comments on commit e0843a1

Please sign in to comment.