mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
Try Cypress in Github Actions 3
This commit is contained in:
parent
c7b4b18907
commit
a1a0dbdf0e
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
|
|
@ -11,8 +11,15 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Install deps
|
||||
run: npm install
|
||||
- name: Cypress E2E tests
|
||||
uses: cypress-io/github-action@v4
|
||||
with:
|
||||
build: npm run build
|
||||
start: npm start
|
||||
env:
|
||||
BASE_URL: http://localhost:5800
|
||||
PORT: 5800
|
||||
DB_PATH: db.sqlite3
|
||||
- name: Prettier
|
||||
run: npm run prettier:check
|
||||
- name: Lint TS
|
||||
|
|
@ -21,8 +28,3 @@ jobs:
|
|||
run: npm run lint:styles
|
||||
- name: Typecheck
|
||||
run: npm run typecheck
|
||||
- name: Cypress run
|
||||
uses: cypress-io/github-action@v4
|
||||
with:
|
||||
build: npm run build
|
||||
start: npm start
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
"private": true,
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"deploy": "npm install && npm run build",
|
||||
"deploy": "npm ci && npm run build",
|
||||
"build": "remix build",
|
||||
"dev": "cross-env NODE_ENV=development remix dev",
|
||||
"dev:cypress": "cross-env NODE_ENV=test PORT=4455 DB_PATH=db-cypress.sqlite3 remix dev",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user