Skip to content

Commit afd30ab

Browse files
authored
Upgrade Node.js to 20 (#12)
1 parent c8770a8 commit afd30ab

File tree

9 files changed

+1878
-1515
lines changed

9 files changed

+1878
-1515
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- uses: actions/checkout@v4
4545
- uses: actions/setup-node@v4
4646
with:
47-
node-version: '16.x'
47+
node-version: '20.x'
4848
- run: npm ci
4949
- run: npm run lint
5050
- run: npm test

.github/workflows/validate.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v4
1717
- uses: actions/setup-node@v4
1818
with:
19-
node-version: '16.x'
19+
node-version: '20.x'
2020
- name: Validate build
2121
shell: bash
2222
run: |

dist/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3978,7 +3978,7 @@ async function run() {
39783978
await core.group(`Build context image`, async () => {
39793979
await exec.exec(
39803980
"docker",
3981-
["build", "--progress", "plain", "-f-", "-t", "hasher", build_context],
3981+
["build", "-f-", "-t", "hasher", build_context],
39823982
{
39833983
input: Buffer.from(dockerfile, "utf-8"),
39843984
env: { DOCKER_SCAN_SUGGEST: "false" },
@@ -3988,7 +3988,7 @@ async function run() {
39883988

39893989
core.startGroup(`Collect image context`);
39903990
const image_context = await exec
3991-
.getExecOutput("docker", ["run", "--rm", "hasher"], {
3991+
.getExecOutput("docker", ["run", "--pull", "never", "--rm", "hasher"], {
39923992
failOnStdErr: true,
39933993
})
39943994
.then((res) => {

flake.lock

+77
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
inputs = {
3+
nixpkgs.url = "github:nixos/nixpkgs";
4+
nixpkgsUnstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
5+
flakeUtils.url = "github:numtide/flake-utils";
6+
};
7+
outputs = { self, nixpkgs, nixpkgsUnstable, flakeUtils }:
8+
flakeUtils.lib.eachDefaultSystem (system:
9+
let
10+
pkgs = nixpkgs.legacyPackages.${system};
11+
pkgsUnstable = nixpkgsUnstable.legacyPackages.${system};
12+
in
13+
{
14+
packages = flakeUtils.lib.flattenTree {
15+
nodejs_20 = pkgs.nodejs_20;
16+
};
17+
devShell = pkgs.mkShell {
18+
buildInputs = with self.packages.${system}; [
19+
nodejs_20
20+
];
21+
};
22+
});
23+
}

0 commit comments

Comments
 (0)