diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 843d4080..32fef785 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -9,10 +9,15 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: 20 + # Install NPM dependencies, cache them correctly # and run all Cypress tests - name: Cypress run - uses: cypress-io/github-action@v5 + uses: cypress-io/github-action@v6 with: build: npm run build start: npm run start:mock-with-server diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index f14e75d5..e3394f90 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - node-version: [18.x, 20.x] + node-version: [20.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: diff --git a/package-lock.json b/package-lock.json index 4c3f7f1b..37b73cee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -41,6 +41,10 @@ "karma-jasmine-html-reporter": "~1.7.0", "prettier": "^3.2.5", "typescript": "~5.4.5" + }, + "engines": { + "node": "^20", + "npm": "^10" } }, "node_modules/@ampproject/remapping": { diff --git a/package.json b/package.json index 7f8595fd..96d79be6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,11 @@ { "name": "quill", "version": "0.0.0", - "scripts": { + "engines": { + "node": "^20", + "npm": "^10" + }, + "scripts": { "ng": "ng", "install:mock-server": "cd mock-server; npm install", "start": "ng serve", @@ -52,4 +56,4 @@ "prettier": "^3.2.5", "typescript": "~5.4.5" } -} \ No newline at end of file +}