mirror of
https://github.com/zoriya/flood.git
synced 2026-06-06 20:12:19 +00:00
CI: bump to Node.js 18 and 20
This commit is contained in:
@@ -14,7 +14,7 @@ jobs:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node: [14, 16]
|
||||
node: [18, 20]
|
||||
fail-fast: false
|
||||
|
||||
steps:
|
||||
|
||||
@@ -15,7 +15,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
node: [16]
|
||||
node: [20]
|
||||
check: [check-source-formatting, check-types, lint]
|
||||
|
||||
steps:
|
||||
|
||||
@@ -13,7 +13,7 @@ jobs:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node: [16]
|
||||
node: [20]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -11,7 +11,7 @@ jobs:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node: [16]
|
||||
node: [20]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user