From 07e5b1edc3440e6664b759d80e1c5678347c3484 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 | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test-backend.yml | 4 ++-- distribution/debian/flood-bin/BUILD | 4 ++-- package.json | 12 ++++++------ 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e145551b7..e1fcd9566 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 1715224a5..ed417bdf6 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 7b006aeb5..77ab34cfc 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 8892292ac..782b90aec 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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6a38427b9..c47219610 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 fadd03d4e..a40151b62 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,7 +37,7 @@ 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 diff --git a/distribution/debian/flood-bin/BUILD b/distribution/debian/flood-bin/BUILD index 96055d689..a4db849a5 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 4016f42e5..8f9eb83f7 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": {