diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index a9b7b20..31b12c7 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -6,7 +6,21 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - # Install npm dependencies, cache them correctly - # and run all Cypress tests + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '16' # Use the appropriate Node.js version for your project + + - name: Install dependencies + run: npm ci + + - name: Start application server + run: npm run dev & + env: + NODE_ENV: development + - name: Cypress run uses: cypress-io/github-action@v6 + with: + start: npm run dev diff --git a/package-lock.json b/package-lock.json index 58ac3a5..267e5f3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,6 +29,7 @@ "eslint": "^8.28.0", "eslint-plugin-react": "^7.32.2", "eslint-plugin-react-hooks": "^4.6.0", + "eslint-plugin-react-refresh": "^0.4.9", "prettier": "^3.3.3", "vite": "^4.1.0" } @@ -2848,6 +2849,15 @@ "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0" } }, + "node_modules/eslint-plugin-react-refresh": { + "version": "0.4.9", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.9.tgz", + "integrity": "sha512-QK49YrBAo5CLNLseZ7sZgvgTy21E6NEw22eZqc4teZfH8pxV3yXc9XXOYfUI6JNpw7mfHNkAeWtBxrTyykB6HA==", + "dev": true, + "peerDependencies": { + "eslint": ">=7" + } + }, "node_modules/eslint-plugin-react/node_modules/doctrine": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", diff --git a/package.json b/package.json index 04eaa2c..94ac882 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "eslint": "^8.28.0", "eslint-plugin-react": "^7.32.2", "eslint-plugin-react-hooks": "^4.6.0", + "eslint-plugin-react-refresh": "^0.4.9", "prettier": "^3.3.3", "vite": "^4.1.0" }