Skip to content

Commit

Permalink
ci: add node-18 lts checks (#2017)
Browse files Browse the repository at this point in the history
* ci: add node-18 lts checks

* test: move to cypress v11

* chore: upgrade to cypress v11

* chore: upgrade to cypress v11

* ci: max out 10 minutes

* chore(scripts): cy:run and explicit host

* chore(scripts): use ip address for cypress (till node 18 is supported)
  • Loading branch information
belgattitude committed Nov 10, 2022
1 parent ba2d5a5 commit 6d4caa7
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 25 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ on:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
node-version: [16.x, 14.x]
node-version: [18.x, 16.x, 14.x]
steps:
- uses: actions/checkout@v3

Expand Down
13 changes: 13 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { defineConfig } from 'cypress'

export default defineConfig({
e2e: {
baseUrl: 'http://localhost:3000',
supportFile: false,
//
// setupNodeEvents(on, config) {
// // implement node event listeners here
// },
//
},
})
6 changes: 0 additions & 6 deletions cypress/cypress.json

This file was deleted.

File renamed without changes.
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@
"install:example:ssg": "cd examples/ssg && npm install",
"move-build-to-examples?": "Hack: see # @link https://github.com/i18next/next-i18next/pull/2012",
"move-build-to-examples": "rimraf ./examples/*/node_modules/next-i18next && cpy './package.json' './*.js' './*.ts' './dist' ./examples/simple/node_modules/next-i18next && cpy './package.json' './*.js' './*.ts' './dist' ./examples/ssg/node_modules/next-i18next",
"test:e2e": "start-server-and-test 'cd examples/simple && npm run start' 3000 'npm run cypress'",
"test:e2e": "start-server-and-test 'cd examples/simple && npm run start' http://127.0.0.1:3000 cy:run",
"cy:run": "cypress run",
"example": "npm run example:simple",
"example:prod": "npm run example:simple:prod",
"example:simple": "npm run build && cp -r dist examples/simple/node_modules/next-i18next && cd examples/simple && npm run dev",
"example:simple:prod": "npm run build:example:simple && cd examples/simple && npm run start",
"example:ssg": "npm run build && cp -r dist examples/ssg/node_modules/next-i18next && cd examples/ssg && npm run dev",
"example:ssg:prod": "npm run build:example:ssg && cd examples/ssg && npm run start",
"prepublishOnly": "npm run build",
"cypress": "cypress run --config-file cypress/cypress.json",
"contributors:check": "all-contributors check",
"contributors:add": "all-contributors add",
"contributors:generate": "all-contributors generate",
Expand Down Expand Up @@ -104,7 +104,7 @@
"babel-plugin-add-module-exports": "1.0.4",
"babel-plugin-transform-async-to-generator": "6.24.1",
"cpy-cli": "^4.2.0",
"cypress": "^9.1.1",
"cypress": "^11.0.1",
"es-check": "^7.0.1",
"eslint": "^8.22.0",
"eslint-plugin-cypress": "^2.12.1",
Expand Down

0 comments on commit 6d4caa7

Please sign in to comment.