diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d363068c1..3e137b628 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/package.json b/package.json index a56dce0a2..a05f60189 100644 --- a/package.json +++ b/package.json @@ -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",