mirror of
https://github.com/IT4Change/boilerplate-e2e-cypress-cucumber.git
synced 2025-12-13 04:55:50 +00:00
Merge pull request #322 from IT4Change/refactor-types-etc
refactor(other): refactor types etc
This commit is contained in:
commit
2b484289ef
8
.github/workflows/e2e.run.tests.yml
vendored
8
.github/workflows/e2e.run.tests.yml
vendored
@ -7,13 +7,13 @@ jobs:
|
|||||||
name: Run all E2E tests
|
name: Run all E2E tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
||||||
|
|
||||||
- name: Set Node version
|
- name: Set Node version
|
||||||
uses: actions/setup-node@633bb92bc0aabcae06e8ea93b85aecddd374c402 # v6.0.0
|
uses: actions/setup-node@633bb92bc0aabcae06e8ea93b85aecddd374c402 # v6.0.0
|
||||||
with:
|
with:
|
||||||
node-version: '>=22.15.0'
|
node-version-file: '.tool-versions'
|
||||||
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
|
||||||
|
|
||||||
- name: E2E - Run all tests
|
- name: E2E - Run all tests
|
||||||
id: e2e-run
|
id: e2e-run
|
||||||
|
|||||||
10
.github/workflows/e2e.test.build.docs.yml
vendored
10
.github/workflows/e2e.test.build.docs.yml
vendored
@ -25,13 +25,13 @@ jobs:
|
|||||||
needs: files-changed
|
needs: files-changed
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Set Node version
|
|
||||||
uses: actions/setup-node@633bb92bc0aabcae06e8ea93b85aecddd374c402 # v6.0.0
|
|
||||||
with:
|
|
||||||
node-version: '>=22.15.0'
|
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
||||||
|
|
||||||
|
- name: Set Node version
|
||||||
|
uses: actions/setup-node@633bb92bc0aabcae06e8ea93b85aecddd374c402 # v6.0.0
|
||||||
|
with:
|
||||||
|
node-version-file: '.tool-versions'
|
||||||
|
|
||||||
- name: E2E Testing | Build Docs
|
- name: E2E Testing | Build Docs
|
||||||
run: npm install && npm run docs:build
|
run: npm install && npm run docs:build
|
||||||
|
|||||||
10
.github/workflows/e2e.test.lint.yml
vendored
10
.github/workflows/e2e.test.lint.yml
vendored
@ -25,13 +25,13 @@ jobs:
|
|||||||
needs: files-changed
|
needs: files-changed
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Set Node version
|
|
||||||
uses: actions/setup-node@633bb92bc0aabcae06e8ea93b85aecddd374c402 # v6.0.0
|
|
||||||
with:
|
|
||||||
node-version: '>=22.15.0'
|
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
||||||
|
|
||||||
|
- name: Set Node version
|
||||||
|
uses: actions/setup-node@633bb92bc0aabcae06e8ea93b85aecddd374c402 # v6.0.0
|
||||||
|
with:
|
||||||
|
node-version-file: '.tool-versions'
|
||||||
|
|
||||||
- name: E2E files | Lint
|
- name: E2E files | Lint
|
||||||
run: npm install && npm run test:lint:eslint
|
run: npm install && npm run test:lint:eslint
|
||||||
|
|||||||
1
.tool-versions
Normal file
1
.tool-versions
Normal file
@ -0,0 +1 @@
|
|||||||
|
nodejs 24.11.1
|
||||||
@ -1,5 +1,3 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
|
||||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
||||||
/* eslint-disable import/no-relative-parent-imports */
|
/* eslint-disable import/no-relative-parent-imports */
|
||||||
import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor'
|
import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor'
|
||||||
|
|
||||||
|
|||||||
@ -1,8 +1,14 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "es5",
|
"target": "ES2022",
|
||||||
"lib": ["es5", "dom"],
|
"lib": ["ES2022", "dom"],
|
||||||
|
"module": "ESNext",
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"strict": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
"types": ["cypress", "node"]
|
"types": ["cypress", "node"]
|
||||||
},
|
},
|
||||||
"include": ["./**/*.ts", ".vuepress/config.ts"]
|
"include": ["./**/*.ts"],
|
||||||
|
"exclude": ["node_modules"]
|
||||||
}
|
}
|
||||||
@ -22,7 +22,7 @@ const compat = new FlatCompat({
|
|||||||
module.exports = defineConfig([
|
module.exports = defineConfig([
|
||||||
{
|
{
|
||||||
|
|
||||||
ignores: ['.gitignore', '.github/', '.vuepress/public/', '**/*md', '**/*.json', '**/build/', 'cypress/reports/', 'cypress/screenshots/', 'LICENSE', 'node_modules/'],
|
ignores: ['.gitignore', '.github/', '.vuepress/public/', '.vuepress/.temp/', '**/*md', '**/*.json', '**/build/', 'cypress/reports/', 'cypress/screenshots/', 'LICENSE', 'node_modules/'],
|
||||||
|
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
globals: {
|
globals: {
|
||||||
@ -226,6 +226,7 @@ module.exports = defineConfig([
|
|||||||
'.gitignore',
|
'.gitignore',
|
||||||
'.github/',
|
'.github/',
|
||||||
'.vuepress/public/',
|
'.vuepress/public/',
|
||||||
|
'.vuepress/.temp/',
|
||||||
'**/*md',
|
'**/*md',
|
||||||
'**/*.json',
|
'**/*.json',
|
||||||
'**/build/',
|
'**/build/',
|
||||||
|
|||||||
@ -4,8 +4,9 @@
|
|||||||
"module": "nodenext",
|
"module": "nodenext",
|
||||||
"lib": ["ES2022", "dom"],
|
"lib": ["ES2022", "dom"],
|
||||||
"strict": true,
|
"strict": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
"types": ["cypress", "node"]
|
"types": ["cypress", "node"]
|
||||||
},
|
},
|
||||||
"include": ["**/*.ts", ".vuepress/config.ts"],
|
"include": ["**/*.ts", ".vuepress/config.ts"],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules", "cypress"]
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user