Skip to content

Commit 82bcd2a

Browse files
committed
feat: Run on node24
1 parent 6391d02 commit 82bcd2a

7 files changed

Lines changed: 42 additions & 23 deletions

File tree

.github/workflows/package-action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
- uses: actions/checkout@v2
1313
with:
1414
ssh-key: "${{ secrets.COMMIT_KEY }}"
15-
- uses: actions/setup-node@v3
15+
- uses: actions/setup-node@v6
1616
with:
17-
node-version: 16
17+
node-version-file: "package.json"
1818
- name: Install Javascript dependencies with npm
1919
run: npm install
2020
- name: Package action for distribution

.github/workflows/tests-integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v2
16-
- uses: actions/setup-node@v3
16+
- uses: actions/setup-node@v6
1717
with:
18-
node-version: 16
18+
node-version-file: "package.json"
1919
- name: Install Javascript dependencies with npm
2020
if: ${{ github.ref != 'refs/heads/release' }}
2121
run: npm install

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2021 > LIMITED and contributors
3+
Copyright (c) 2026 shr.ink OÜ and contributors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ branding:
33
icon: "target"
44
color: "green"
55
description: "Write tests in GitHub Workflows for integration tests and build pipelines"
6-
author: "Samuel Ryan <sam@samryan.co.uk>"
6+
author: "Samuel Ryan <sam@shr.ink>"
77
inputs:
88
assertion:
99
description: "Name of the assertion to run against value"
@@ -49,5 +49,5 @@ outputs:
4949
error:
5050
description: "Error message (if any) that has been output to the log"
5151
runs:
52-
using: "node16"
52+
using: "node24"
5353
main: "dist/index.js"

package-lock.json

Lines changed: 26 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
"style": "npm run format && npm run lint"
1212
},
1313
"engines": {
14-
"node": ">=16.0.0"
14+
"node": ">=24.0.0"
1515
},
1616
"keywords": [
1717
"actions",
1818
"github-actions",
1919
"assertions",
2020
"assert"
2121
],
22-
"author": "Samuel Ryan <sam@samryan.co.uk>",
22+
"author": "Samuel Ryan <sam@shr.ink>",
2323
"license": "MIT",
2424
"dependencies": {
2525
"@actions/core": "^1.10.0",
@@ -32,7 +32,7 @@
3232
"@types/jest": "^26.0.15",
3333
"@types/node": "^14.14.9",
3434
"@typescript-eslint/parser": "^5",
35-
"@vercel/ncc": "^0.25.1",
35+
"@vercel/ncc": "^0.38.4",
3636
"eslint": "^8",
3737
"eslint-plugin-github": "^4.1.1",
3838
"eslint-plugin-jest": "^26",

src/main.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,12 @@ async function run(): Promise<void> {
7373
core.setOutput('pass', aggregateResult.pass.toString())
7474
core.setOutput('passed', aggregateResult.pass.toString())
7575
core.setOutput('failed', (!aggregateResult.pass).toString())
76-
} catch (error: any) {
77-
core.setFailed(error.message)
76+
} catch (error: unknown) {
77+
core.setFailed(
78+
error instanceof Error
79+
? error.message
80+
: 'an unknown error occurred when running actions-assert'
81+
)
7882
}
7983
}
8084

0 commit comments

Comments
 (0)