mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 14:20:42 +08:00
22 lines
585 B
YAML
22 lines
585 B
YAML
name: check-build
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
check-build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '18.12.1'
|
|
- uses: actions/checkout@v2
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- name: Cypress run
|
|
uses: cypress-io/github-action@v4
|
|
with:
|
|
browser: chrome
|
|
start: npm run serve
|
|
wait-on: "http://localhost:4173"
|
|
command: npx cypress run --config baseUrl="http://localhost:4173" --spec 'cypress/e2e/home.spec.ts'
|