Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add node-18 lts checks #2017

Merged
merged 7 commits into from
Nov 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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