Skip to content

Commit

Permalink
Upgrade Node.js to 20 (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
flaeppe authored Feb 2, 2024
1 parent c8770a8 commit afd30ab
Show file tree
Hide file tree
Showing 9 changed files with 1,878 additions and 1,515 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: '20.x'
- run: npm ci
- run: npm run lint
- run: npm test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: '20.x'
- name: Validate build
shell: bash
run: |
Expand Down
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3978,7 +3978,7 @@ async function run() {
await core.group(`Build context image`, async () => {
await exec.exec(
"docker",
["build", "--progress", "plain", "-f-", "-t", "hasher", build_context],
["build", "-f-", "-t", "hasher", build_context],
{
input: Buffer.from(dockerfile, "utf-8"),
env: { DOCKER_SCAN_SUGGEST: "false" },
Expand All @@ -3988,7 +3988,7 @@ async function run() {

core.startGroup(`Collect image context`);
const image_context = await exec
.getExecOutput("docker", ["run", "--rm", "hasher"], {
.getExecOutput("docker", ["run", "--pull", "never", "--rm", "hasher"], {
failOnStdErr: true,
})
.then((res) => {
Expand Down
77 changes: 77 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
nixpkgsUnstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flakeUtils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, nixpkgsUnstable, flakeUtils }:
flakeUtils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
pkgsUnstable = nixpkgsUnstable.legacyPackages.${system};
in
{
packages = flakeUtils.lib.flattenTree {
nodejs_20 = pkgs.nodejs_20;
};
devShell = pkgs.mkShell {
buildInputs = with self.packages.${system}; [
nodejs_20
];
};
});
}
Loading

0 comments on commit afd30ab

Please sign in to comment.