Skip to content

Commit deab7ee

Browse files
committed
last bits for spec moves and node bump to 20
1 parent 18ca368 commit deab7ee

8 files changed

+3950
-4110
lines changed

.github/workflows/eslint.yml

+50-50
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
1-
# This workflow uses actions that are not certified by GitHub.
2-
# They are provided by a third-party and are governed by
3-
# separate terms of service, privacy policy, and support
4-
# documentation.
5-
# ESLint is a tool for identifying and reporting on patterns
6-
# found in ECMAScript/JavaScript code.
7-
# More details at https://github.com/eslint/eslint
8-
# and https://eslint.org
9-
10-
name: ESLint
11-
12-
on:
13-
push:
14-
branches: ["master"]
15-
pull_request:
16-
# The branches below must be a subset of the branches above
17-
branches: ["master"]
18-
schedule:
19-
- cron: "40 5 * * 0"
20-
21-
jobs:
22-
eslint:
23-
name: Run eslint scanning
24-
runs-on: ubuntu-latest
25-
permissions:
26-
contents: read
27-
security-events: write
28-
steps:
29-
- name: Checkout code
30-
uses: actions/checkout@v3
31-
32-
- name: Install ESLint
33-
run: |
34-
npm install eslint@8.10.0
35-
npm install @microsoft/[email protected]
36-
37-
- name: Run ESLint
38-
run: npx eslint .
39-
--config .eslintrc.js
40-
--quiet
41-
--ext .js,.jsx,.ts,.tsx
42-
--format @microsoft/eslint-formatter-sarif
43-
--output-file eslint-results.sarif
44-
continue-on-error: true
45-
46-
- name: Upload analysis results to GitHub
47-
uses: github/codeql-action/upload-sarif@v2
48-
with:
49-
sarif_file: eslint-results.sarif
50-
wait-for-processing: true
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# ESLint is a tool for identifying and reporting on patterns
6+
# found in ECMAScript/JavaScript code.
7+
# More details at https://github.com/eslint/eslint
8+
# and https://eslint.org
9+
10+
name: ESLint
11+
12+
on:
13+
push:
14+
branches: ["master"]
15+
pull_request:
16+
# The branches below must be a subset of the branches above
17+
branches: ["master"]
18+
schedule:
19+
- cron: "40 5 * * 0"
20+
21+
jobs:
22+
eslint:
23+
name: Run eslint scanning
24+
runs-on: ubuntu-latest
25+
permissions:
26+
contents: read
27+
security-events: write
28+
steps:
29+
- name: Checkout code
30+
uses: actions/checkout@v4
31+
32+
- name: Install ESLint
33+
run: |
34+
npm install eslint@8.56.0
35+
npm install @microsoft/[email protected]
36+
37+
- name: Run ESLint
38+
run: npm eslint .
39+
--config .eslintrc.js
40+
--quiet
41+
--ext .js,.jsx,.ts,.tsx
42+
--format @microsoft/eslint-formatter-sarif
43+
--output-file eslint-results.sarif
44+
continue-on-error: true
45+
46+
- name: Upload analysis results to GitHub
47+
uses: github/codeql-action/upload-sarif@v2
48+
with:
49+
sarif_file: eslint-results.sarif
50+
wait-for-processing: true

.github/workflows/node.nix.js.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [12.x, 14.x, 16.x, 18.x]
19+
node-version: [20.x]
2020
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2121

2222
env:
2323
NVM_HOME: "nvm"
2424

2525
steps:
26-
- uses: actions/checkout@v3
27-
- uses: actions/setup-node@v3
26+
- uses: actions/checkout@v4
27+
- uses: actions/setup-node@v4
2828
with:
2929
node-version: ${{ matrix.node-version }}
3030
- run: yarn install --frozen-lockfile

.github/workflows/node.win.js.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [12.x, 14.x, 16.x, 18.x]
19+
node-version: [20.x]
2020
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2121

2222
env:
2323
NVM_HOME: "nvm"
2424

2525
steps:
26-
- uses: actions/checkout@v3
27-
- uses: actions/setup-node@v3
26+
- uses: actions/checkout@v4
27+
- uses: actions/setup-node@v4
2828
with:
2929
node-version: ${{ matrix.node-version }}
3030
- run: yarn install --frozen-lockfile

.mocharc.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
spec:
2+
- "test/*.spec.js" # the positional arguments!
3+
reporter: "spec"
4+
watch-files:
5+
- "src/**/*.js"
6+
- "test/*.spec.js"
7+
timeout: 5000

.yarnrc.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
nodeLinker: node-modules
2-
yarnPath: .yarn/releases/yarn-3.4.1.cjs
2+
3+
yarnPath: .yarn/releases/yarn-3.8.0.cjs

jsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"checkJs": true
66
},
77
"include": [
8-
"src/**/*.js"
8+
"src/**/*.js",
9+
"test/*.spec.js"
910
]
1011
}

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "my-dev-tools",
3-
"version": "3.0.0",
3+
"version": "4.0.0",
44
"main": "",
55
"repository": "https://github.com/begin-again/dev-tools.git",
66
"license": "MIT",
@@ -10,11 +10,11 @@
1010
"test:slow": "mocha --fgrep slow ./src/**/*.spec.js"
1111
},
1212
"engines": {
13-
"node": "12.13.1 || ^12.22.4 || ^14.17.4 || ^16.6.0 || ^18.12.0",
13+
"node": "^20.11.0",
1414
"yarn": "^1.22.4"
1515
},
1616
"dependencies": {
17-
"dotenv": "^16.4.2",
17+
"dotenv": "^16.4.4",
1818
"luxon": "^3.4.4",
1919
"semver": "^7.6.0",
2020
"shelljs": "^0.8.5",
@@ -25,16 +25,16 @@
2525
"yargs": "^17.7.2"
2626
},
2727
"devDependencies": {
28-
"chai": "^4.3.10",
29-
"eslint": "^8.44.0",
28+
"chai": "^4.4.1",
29+
"eslint": "^8.56.0",
3030
"eslint-plugin-node": "^11.1.0",
3131
"mocha": "^9.2.2",
3232
"mock-fs": "^5.2.0",
3333
"nyc": "^15.1.0",
3434
"proxyquire": "^2.1.3",
3535
"randomatic": "^3.1.1",
36-
"sinon": "^13.0.1",
36+
"sinon": "^13.0.2",
3737
"sinon-chai": "^3.7.0"
3838
},
39-
"packageManager": "yarn@3.4.1"
39+
"packageManager": "yarn@3.8.0"
4040
}

0 commit comments

Comments
 (0)