CI: bump to Node.js 18 and 20

This commit is contained in:
Jesse Chan
2023-06-11 00:41:50 -07:00
parent b2f50f07af
commit 8ab421a516
8 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
node: [14, 16]
node: [18, 20]
fail-fast: false
steps:
+1 -1
View File
@@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [16]
node: [20]
check: [check-source-formatting, check-types, lint]
steps:
+1 -1
View File
@@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
node: [16]
node: [20]
steps:
- uses: actions/checkout@v3
+3 -3
View File
@@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
node: [16]
node: [20]
steps:
- uses: actions/checkout@v3
@@ -120,7 +120,7 @@ jobs:
strategy:
matrix:
node: [16]
node: [20]
steps:
- uses: actions/checkout@v3
@@ -177,7 +177,7 @@ jobs:
strategy:
matrix:
node: [16]
node: [20]
steps:
- name: Use Node.js ${{ matrix.node }}
+1 -1
View File
@@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
node: [16]
node: [20]
steps:
- uses: actions/checkout@v3
+3 -3
View File
@@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
node: [14, 16]
node: [18, 20]
fail-fast: false
steps:
@@ -37,11 +37,11 @@ jobs:
- run: npm test || npm test || npm test
- uses: codecov/codecov-action@v1
if: matrix.node == 16
if: matrix.node == 20
- run: |
sudo apt-get remove --purge -y rtorrent
sudo apt-get install -y rtorrent
- run: npm test -- --selectProjects rtorrent || npm test -- --selectProjects rtorrent || npm test -- --selectProjects rtorrent
if: matrix['node'] == '16'
if: matrix['node'] == '20'
+2 -2
View File
@@ -19,7 +19,7 @@ genrule(
"package.json",
] + glob(["node_modules/**/*"]),
outs = ["arm64/flood"],
cmd = "pkg $$(dirname $(location package.json)) -t node14-linuxstatic-arm64 --out-path $(RULEDIR)/arm64",
cmd = "pkg $$(dirname $(location package.json)) -t node18-linuxstatic-arm64 --out-path $(RULEDIR)/arm64",
executable = True,
)
@@ -30,7 +30,7 @@ genrule(
"package.json",
] + glob(["node_modules/**/*"]),
outs = ["x64/flood"],
cmd = "pkg $$(dirname $(location package.json)) -t node14-linuxstatic-x64 --out-path $(RULEDIR)/x64",
cmd = "pkg $$(dirname $(location package.json)) -t node18-linuxstatic-x64 --out-path $(RULEDIR)/x64",
executable = True,
)
+6 -6
View File
@@ -39,12 +39,12 @@
"dist/geoip-country6.dat"
],
"targets": [
"node14-linuxstatic-x64",
"node14-linuxstatic-arm64",
"node14-macos-x64",
"node14-macos-arm64",
"node14-win-x64",
"node14-win-arm64"
"node18-linuxstatic-x64",
"node18-linuxstatic-arm64",
"node18-macos-x64",
"node18-macos-arm64",
"node18-win-x64",
"node18-win-arm64"
]
},
"scripts": {