diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 553ec34..ea03852 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -38,10 +38,12 @@ jobs: rm package-lock.json - name: Install Dependencies run: npm install - - name: Start app - run: npm run dev - - name: Run tests - run: npm run cypress:run + - name: Cypress e2e tests 🧪 + uses: cypress-io/github-action@v6.4.0 + with: + start: npm run dev + wait-on: "http://localhost:3000" + browser: chrome Deploy-Preview: runs-on: ubuntu-latest diff --git a/.github/workflows/production.yaml b/.github/workflows/production.yaml index 13cee6f..fd9320f 100644 --- a/.github/workflows/production.yaml +++ b/.github/workflows/production.yaml @@ -40,8 +40,12 @@ jobs: run: npm install - name: Start app run: npm run dev - - name: Run tests - run: npm run cypress:run + - name: Cypress e2e tests 🧪 + uses: cypress-io/github-action@v6.4.0 + with: + start: npm run dev + wait-on: "http://localhost:3000" + browser: chrome Deploy-Production: runs-on: ubuntu-latest