From 8ab421a5168d448bd55e5e7aaed37b12666ad760 Mon Sep 17 00:00:00 2001 From: Jesse Chan Date: Sun, 11 Jun 2023 00:41:50 -0700 Subject: [PATCH] CI: bump to Node.js 18 and 20 --- .github/workflows/build.yml | 2 +- .github/workflows/check.yml | 2 +- .github/workflows/distribute-debian.yml | 2 +- .github/workflows/publish-rolling.yml | 6 +++--- .github/workflows/release.yml | 2 +- .github/workflows/test-backend.yml | 6 +++--- distribution/debian/flood-bin/BUILD | 4 ++-- package.json | 12 ++++++------ 8 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e145551b..e1fcd956 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: - node: [14, 16] + node: [18, 20] fail-fast: false steps: diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 1715224a..ed417bdf 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -15,7 +15,7 @@ jobs: strategy: fail-fast: false matrix: - node: [16] + node: [20] check: [check-source-formatting, check-types, lint] steps: diff --git a/.github/workflows/distribute-debian.yml b/.github/workflows/distribute-debian.yml index 7b006aeb..77ab34cf 100644 --- a/.github/workflows/distribute-debian.yml +++ b/.github/workflows/distribute-debian.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - node: [16] + node: [20] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/publish-rolling.yml b/.github/workflows/publish-rolling.yml index 8892292a..7d9ca386 100644 --- a/.github/workflows/publish-rolling.yml +++ b/.github/workflows/publish-rolling.yml @@ -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 }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6a38427b..c4721961 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: - node: [16] + node: [20] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-backend.yml b/.github/workflows/test-backend.yml index fadd03d4..5dba9eee 100644 --- a/.github/workflows/test-backend.yml +++ b/.github/workflows/test-backend.yml @@ -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' diff --git a/distribution/debian/flood-bin/BUILD b/distribution/debian/flood-bin/BUILD index 96055d68..a4db849a 100644 --- a/distribution/debian/flood-bin/BUILD +++ b/distribution/debian/flood-bin/BUILD @@ -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, ) diff --git a/package.json b/package.json index 4016f42e..8f9eb83f 100644 --- a/package.json +++ b/package.json @@ -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": {