Skip to content

Commit 00759fd

Browse files
authored
Merge pull request #107 from srl295/use-dots
chore: update, modernize, etc
2 parents 2e673e0 + f3eb823 commit 00759fd

7 files changed

Lines changed: 61 additions & 49 deletions

File tree

.github/workflows/lint.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ jobs:
1010
lint:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
14-
- uses: actions/setup-node@v3
15-
with:
16-
node-version: 16
17-
- run: npm i
18-
- run: npm run lint
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: 26
17+
- run: npm i
18+
- run: npm run lint
1919
test:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- uses: actions/checkout@v3
2323
- uses: actions/setup-node@v3
2424
with:
25-
node-version: 16
25+
node-version: 26
2626
- run: npm i
27-
- run: npm t
27+
- run: npm t -- --allow-incomplete-coverage

.github/workflows/test-gh.yml

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,26 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
container:
15-
# Official Node.js images.
16-
- node:12
17-
- node:14
18-
- node:16
19-
# RHEL Node.js builds are icu_small without installing the
20-
# optional nodejs-full-i18n rpm.
21-
- registry.access.redhat.com/ubi8/nodejs-12
22-
- registry.access.redhat.com/ubi8/nodejs-14
23-
# - registry.access.redhat.com/ubi8/nodejs-16
24-
- node:12-slim
15+
# Official Node.js images.
16+
- node:22
17+
- node:24
18+
- node:26
19+
# RHEL Node.js builds are icu_small without installing the
20+
# optional nodejs-full-i18n rpm.
21+
- registry.access.redhat.com/ubi8/nodejs-22
22+
- registry.access.redhat.com/ubi8/nodejs-24
23+
#- registry.access.redhat.com/ubi8/nodejs-26
24+
- node:22-slim
25+
- node:24-slim
26+
- node:26-slim
2527
runs-on: ubuntu-latest
2628
steps:
27-
- uses: actions/checkout@v3
28-
- uses: actions/checkout@v3
29-
with:
30-
repository: nodejs/full-icu-test
31-
path: full-icu-test
32-
- name: Install full-icu
33-
run: docker run --rm -v $(pwd):/usr/src/app -w /usr/src/app ${{ matrix.container }} npm i --no-package-lock --unsafe-perm
34-
- name: Test full-icu
35-
run: docker run --rm -e NODE_ICU_DATA=. -v $(pwd):/usr/src/app -w /usr/src/app ${{ matrix.container }} node ./full-icu-test/test.js
29+
- uses: actions/checkout@v3
30+
- uses: actions/checkout@v3
31+
with:
32+
repository: nodejs/full-icu-test
33+
path: full-icu-test
34+
- name: Install full-icu
35+
run: docker run --rm -v $(pwd):/usr/src/app -w /usr/src/app ${{ matrix.container }} npm i --no-package-lock --unsafe-perm
36+
- name: Test full-icu
37+
run: docker run --rm -e NODE_ICU_DATA=. -v $(pwd):/usr/src/app -w /usr/src/app ${{ matrix.container }} node ./full-icu-test/test.js

.github/workflows/test-npm.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,23 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
container:
15-
- node:12
16-
- node:12-slim
17-
# Will fail on versions that aren't in icu4c-data
15+
- node:22
16+
- node:22-slim
17+
- node:24
18+
- node:24-slim
19+
- node:26
20+
- node:26-slim
21+
#- node:27
22+
#- node:27-slim
23+
# Will fail on versions that aren't in icu4c-data
1824
runs-on: ubuntu-latest
1925
steps:
20-
- uses: actions/checkout@v3
21-
- uses: actions/checkout@v3
22-
with:
23-
repository: nodejs/full-icu-test
24-
path: full-icu-test
25-
- name: Install full-icu
26-
run: docker run --rm -v $(pwd):/usr/src/app -w /usr/src/app ${{ matrix.container }} env FULL_ICU_PREFER_NPM=1 npm i --no-package-lock --unsafe-perm
27-
- name: Test full-icu
28-
run: docker run --rm -e NODE_ICU_DATA=. -v $(pwd):/usr/src/app -w /usr/src/app ${{ matrix.container }} node ./full-icu-test/test.js
26+
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v3
28+
with:
29+
repository: nodejs/full-icu-test
30+
path: full-icu-test
31+
- name: Install full-icu
32+
run: docker run --rm -v $(pwd):/usr/src/app -w /usr/src/app ${{ matrix.container }} env FULL_ICU_PREFER_NPM=1 npm i --no-package-lock --unsafe-perm
33+
- name: Test full-icu
34+
run: docker run --rm -e NODE_ICU_DATA=. -v $(pwd):/usr/src/app -w /usr/src/app ${{ matrix.container }} node ./full-icu-test/test.js

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ npm-debug.log
44
/yarn.lock
55
package-lock.json
66
/.nyc_output
7+
/.tap

eslint.config.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import globals from 'globals'
2+
import { defineConfig } from 'eslint/config'
3+
4+
export default defineConfig([
5+
{ files: ['**/*.js'], languageOptions: { sourceType: 'commonjs' } },
6+
{ files: ['**/*.{js,mjs,cjs}'], languageOptions: { globals: globals.node } }
7+
])

full-icu.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (C) 2015 IBM Corporation and Others. All Rights Reserved.
22

3-
// var process = require('process');
4-
// console.dir(process.env);
3+
// const process = require('process')
54

65
const fs = require('fs')
76
const path = require('path')

package.json

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,10 @@
2828
"yauzl": "^2.10.0"
2929
},
3030
"devDependencies": {
31-
"eslint": "^8.44.0",
32-
"eslint-config-standard": "^16.0.3",
33-
"eslint-plugin-header": "^3.0.0",
34-
"eslint-plugin-import": "^2.24.2",
35-
"eslint-plugin-node": "^11.1.0",
36-
"eslint-plugin-promise": "^6.1.1",
37-
"standard": "^16.0.3",
38-
"tap": "^16.3.4"
31+
"@eslint/js": "^10.0.1",
32+
"eslint": "^10.5.0",
33+
"globals": "^17.6.0",
34+
"standard": "^17.1.2",
35+
"tap": "^21.7.4"
3936
}
4037
}

0 commit comments

Comments
 (0)