Skip to content

Commit

Permalink
Merge pull request #273 from act10ns/node20-upgrade
Browse files Browse the repository at this point in the history
Bump node to version 20
  • Loading branch information
satterly committed Apr 8, 2024
2 parents 75bc620 + 9c9ead8 commit a570144
Show file tree
Hide file tree
Showing 17 changed files with 7,270 additions and 13,946 deletions.
2 changes: 1 addition & 1 deletion RELEASE.md
Expand Up @@ -3,7 +3,7 @@
## Setup

```bash
$ brew install node@16
$ brew install node@20
$ make install
```

Expand Down
3 changes: 2 additions & 1 deletion __tests__/blocks.test.ts
Expand Up @@ -100,6 +100,7 @@ test('custom config of slack action using legacy and blocks', async () => {
username: 'GitHub-CI',
icon_url: 'https://octodex.github.com/images/mona-the-rivetertocat.png',
channel: '#github-ci',
timeout: 0,
attachments: [
{
mrkdwn_in: ['pretext', 'text', 'fields'],
Expand Down Expand Up @@ -156,7 +157,7 @@ test('custom config of slack action using legacy and blocks', async () => {
fields: [
{
type: 'mrkdwn',
text: '*Workflow*\n<https://github.com/act10ns/slack/actions?query=workflow:build-test|build-test>'
text: '*Workflow*\n<https://github.com/act10ns/slack/actions?query=workflow:%22build-test%22|build-test>'
},
{type: 'mrkdwn', text: '*Git Ref*\nmaster (branch)'},
{type: 'mrkdwn', text: '*Run ID*\n<https://github.com/act10ns/slack/actions/runs/100143423|100143423>'},
Expand Down
3 changes: 2 additions & 1 deletion __tests__/config.test.ts
Expand Up @@ -100,6 +100,7 @@ test('custom config of slack action using legacy attachments', async () => {
username: 'GitHub-CI',
icon_url: 'https://octodex.github.com/images/mona-the-rivetertocat.png',
channel: '#github-ci',
timeout: 0,
attachments: [
{
fallback: '[GitHub] build-test #8 CI Tests is failure',
Expand Down Expand Up @@ -128,7 +129,7 @@ test('custom config of slack action using legacy attachments', async () => {
{
short: true,
title: 'Workflow',
value: '<https://github.com/act10ns/slack/actions?query=workflow:build-test|build-test>'
value: '<https://github.com/act10ns/slack/actions?query=workflow:%22build-test%22|build-test>'
},
{
short: true,
Expand Down
2 changes: 1 addition & 1 deletion __tests__/fixtures/slack.json
Expand Up @@ -15,7 +15,7 @@
"author_link": "https://github.com/satterly",
"author_icon": "https://avatars0.githubusercontent.com/u/615057?v=4",
"title": "",
"text": "*<https://github.com/act10ns/slack/actions?query=workflow:build-test|Workflow _build-test_ job _CI Tests_ triggered by _push_ is _failure_>* for <https://github.com/act10ns/slack/commits/master|`master`>\n<https://github.com/act10ns/slack/compare/db9fe60430a6...68d48876e079|`68d48876`> - 4 commits",
"text": "*<https://github.com/act10ns/slack/actions?query=workflow:%22build-test%22|Workflow _build-test_ job _CI Tests_ triggered by _push_ is _failure_>* for <https://github.com/act10ns/slack/commits/master|`master`>\n<https://github.com/act10ns/slack/compare/db9fe60430a6...68d48876e079|`68d48876`> - 4 commits",
"fields": [
{
"title": "Job Steps",
Expand Down
3 changes: 2 additions & 1 deletion __tests__/inputs.test.ts
Expand Up @@ -100,6 +100,7 @@ test('custom config of slack action using inputs for channel and message', async
username: 'GitHub-CI',
icon_url: 'https://octodex.github.com/images/mona-the-rivetertocat.png',
channel: '#deploy',
timeout: 0,
attachments: [
{
fallback: '[GitHub] build-test #8 CI Tests is in progress',
Expand All @@ -121,7 +122,7 @@ test('custom config of slack action using inputs for channel and message', async
{
short: true,
title: 'Workflow',
value: '<https://github.com/act10ns/slack/actions?query=workflow:build-test|build-test>'
value: '<https://github.com/act10ns/slack/actions?query=workflow:%22build-test%22|build-test>'
},
{
short: true,
Expand Down
3 changes: 2 additions & 1 deletion __tests__/job_matrix.test.ts
Expand Up @@ -64,6 +64,7 @@ test('push event to slack', async () => {
username: 'GitHub Actions',
icon_url: 'https://octodex.github.com/images/original.png',
channel: '@override',
timeout: 0,
attachments: [
{
fallback: '[GitHub]: [act10ns/slack] build-test push Success',
Expand All @@ -73,7 +74,7 @@ test('push event to slack', async () => {
author_icon: 'https://avatars0.githubusercontent.com/u/615057?v=4',
mrkdwn_in: ['pretext', 'text', 'fields'],
pretext: '',
text: '*<https://github.com/act10ns/slack/actions?query=workflow:build-test|Workflow _build-test_ job _Build and Test_ triggered by _push_ is _Success_>* for <https://github.com/act10ns/slack/commits/master|`master`>\n<https://github.com/act10ns/slack/compare/db9fe60430a6...68d48876e079|`68d48876`> - 4 commits',
text: '*<https://github.com/act10ns/slack/actions?query=workflow:%22build-test%22|Workflow _build-test_ job _Build and Test_ triggered by _push_ is _Success_>* for <https://github.com/act10ns/slack/commits/master|`master`>\n<https://github.com/act10ns/slack/compare/db9fe60430a6...68d48876e079|`68d48876`> - 4 commits',
title: '',
fields: [
{
Expand Down
3 changes: 2 additions & 1 deletion __tests__/job_status.test.ts
Expand Up @@ -94,6 +94,7 @@ test('push event to slack', async () => {
username: 'GitHub Actions',
icon_url: 'https://octodex.github.com/images/original.png',
channel: '#github-ci',
timeout: 0,
attachments: [
{
fallback: '[GitHub]: [act10ns/slack] build-test push failure',
Expand All @@ -103,7 +104,7 @@ test('push event to slack', async () => {
author_icon: 'https://avatars0.githubusercontent.com/u/615057?v=4',
mrkdwn_in: ['pretext', 'text', 'fields'],
pretext: '',
text: '*<https://github.com/act10ns/slack/actions?query=workflow:build-test|Workflow _build-test_ job _CI Tests_ triggered by _push_ is _failure_>* for <https://github.com/act10ns/slack/commits/master|`master`>\n<https://github.com/act10ns/slack/compare/db9fe60430a6...68d48876e079|`68d48876`> - 4 commits',
text: '*<https://github.com/act10ns/slack/actions?query=workflow:%22build-test%22|Workflow _build-test_ job _CI Tests_ triggered by _push_ is _failure_>* for <https://github.com/act10ns/slack/commits/master|`master`>\n<https://github.com/act10ns/slack/compare/db9fe60430a6...68d48876e079|`68d48876`> - 4 commits',
title: '',
fields: [
{
Expand Down
3 changes: 2 additions & 1 deletion __tests__/pull_request.test.ts
Expand Up @@ -61,6 +61,7 @@ test('pull request event to slack', async () => {
username: 'GitHub Actions',
icon_url: 'https://octodex.github.com/images/original.png',
channel: '@override',
timeout: 0,
attachments: [
{
fallback: '[GitHub]: [act10ns/slack] build-test pull_request opened Success',
Expand All @@ -70,7 +71,7 @@ test('pull request event to slack', async () => {
author_icon: 'https://avatars0.githubusercontent.com/u/615057?v=4',
mrkdwn_in: ['pretext', 'text', 'fields'],
pretext: '',
text: '*<https://github.com/act10ns/slack/actions?query=workflow:build-test|Workflow _build-test_ job _Build and Test_ triggered by _pull_request_ is _Success_>* for <https://github.com/act10ns/slack/pull/17|`#17`>\n<https://github.com/act10ns/slack/pull/17/files|`rename-to-slack`> - Rename to slack',
text: '*<https://github.com/act10ns/slack/actions?query=workflow:%22build-test%22|Workflow _build-test_ job _Build and Test_ triggered by _pull_request_ is _Success_>* for <https://github.com/act10ns/slack/pull/17|`#17`>\n<https://github.com/act10ns/slack/pull/17/files|`rename-to-slack`> - Rename to slack',
title: '',
fields: [],
footer: '<https://github.com/act10ns/slack|act10ns/slack> #760',
Expand Down
3 changes: 2 additions & 1 deletion __tests__/push.test.ts
Expand Up @@ -61,6 +61,7 @@ test('push event to slack', async () => {
username: 'GitHub Actions',
icon_url: 'https://octodex.github.com/images/original.png',
channel: '@override',
timeout: 0,
attachments: [
{
fallback: '[GitHub]: [act10ns/slack] build-test push Success',
Expand All @@ -70,7 +71,7 @@ test('push event to slack', async () => {
author_icon: 'https://avatars0.githubusercontent.com/u/615057?v=4',
mrkdwn_in: ['pretext', 'text', 'fields'],
pretext: '',
text: '*<https://github.com/act10ns/slack/actions?query=workflow:build-test|Workflow _build-test_ job _Build and Test_ triggered by _push_ is _Success_>* for <https://github.com/act10ns/slack/commits/master|`master`>\n<https://github.com/act10ns/slack/compare/db9fe60430a6...68d48876e079|`68d48876`> - 4 commits',
text: '*<https://github.com/act10ns/slack/actions?query=workflow:%22build-test%22|Workflow _build-test_ job _Build and Test_ triggered by _push_ is _Success_>* for <https://github.com/act10ns/slack/commits/master|`master`>\n<https://github.com/act10ns/slack/compare/db9fe60430a6...68d48876e079|`68d48876`> - 4 commits',
title: '',
fields: [],
footer: '<https://github.com/act10ns/slack|act10ns/slack> #8',
Expand Down
3 changes: 2 additions & 1 deletion __tests__/release.test.ts
Expand Up @@ -63,6 +63,7 @@ test('release event to slack', async () => {
expect(JSON.parse(mockAxios.history.post[0].data)).toStrictEqual({
username: 'GitHub Actions',
icon_url: 'https://octodex.github.com/images/original.png',
timeout: 0,
channel: '@override',
attachments: [
{
Expand All @@ -73,7 +74,7 @@ test('release event to slack', async () => {
author_icon: '',
mrkdwn_in: ['pretext', 'text', 'fields'],
pretext: '',
text: '*<https://github.com/act10ns/slack/actions?query=workflow:build-test|Workflow _build-test_ job _Build and Test_ triggered by _release_ is _Success_>* for <https://github.com/act10ns/slack/commits/refs/tags/v1.0.13|`refs/tags/v1.0.13`>\n',
text: '*<https://github.com/act10ns/slack/actions?query=workflow:%22build-test%22|Workflow _build-test_ job _Build and Test_ triggered by _release_ is _Success_>* for <https://github.com/act10ns/slack/commits/refs/tags/v1.0.13|`refs/tags/v1.0.13`>\n',
title: '',
fields: [],
footer: '<https://github.com/act10ns/slack|act10ns/slack> #817',
Expand Down
3 changes: 2 additions & 1 deletion __tests__/schedule.test.ts
Expand Up @@ -57,6 +57,7 @@ test('schedule event to slack', async () => {
username: 'GitHub Actions',
icon_url: 'https://octodex.github.com/images/original.png',
channel: '@override',
timeout: 0,
attachments: [
{
fallback: '[GitHub]: [act10ns/slack] schedule-test schedule Success',
Expand All @@ -66,7 +67,7 @@ test('schedule event to slack', async () => {
author_icon: 'https://avatars1.githubusercontent.com/u/9919?s=200&v=4',
mrkdwn_in: ['pretext', 'text', 'fields'],
pretext: '',
text: '*<https://github.com/act10ns/slack/actions?query=workflow:schedule-test|Workflow _schedule-test_ job _Build and Test_ triggered by _schedule_ is _Success_>* for <https://github.com/act10ns/slack/commits/master|`master`>\n<https://github.com/act10ns/slack/commit/09a6b2c9|`09a6b2c9`> - Schedule `*/15 * * * *`',
text: '*<https://github.com/act10ns/slack/actions?query=workflow:%22schedule-test%22|Workflow _schedule-test_ job _Build and Test_ triggered by _schedule_ is _Success_>* for <https://github.com/act10ns/slack/commits/master|`master`>\n<https://github.com/act10ns/slack/commit/09a6b2c9|`09a6b2c9`> - Schedule `*/15 * * * *`',
title: '',
fields: [],
footer: '<https://github.com/act10ns/slack|act10ns/slack> #179',
Expand Down
3 changes: 2 additions & 1 deletion __tests__/workflow_dispatch.test.ts
Expand Up @@ -62,6 +62,7 @@ test('workflow_dispatch event to slack', async () => {
username: 'GitHub Actions',
icon_url: 'https://octodex.github.com/images/original.png',
channel: '@override',
timeout: 0,
attachments: [
{
fallback: '[GitHub]: [act10ns/slack] manual-test workflow_dispatch Success',
Expand All @@ -71,7 +72,7 @@ test('workflow_dispatch event to slack', async () => {
author_icon: '',
mrkdwn_in: ['pretext', 'text', 'fields'],
pretext: '',
text: '*<https://github.com/act10ns/slack/actions?query=workflow:manual-test|Workflow _manual-test_ job _Build and Test_ triggered by _workflow_dispatch_ is _Success_>* for <https://github.com/act10ns/slack/commits/master|`master`>\n',
text: '*<https://github.com/act10ns/slack/actions?query=workflow:%22manual-test%22|Workflow _manual-test_ job _Build and Test_ triggered by _workflow_dispatch_ is _Success_>* for <https://github.com/act10ns/slack/commits/master|`master`>\n',
title: '',
fields: [],
footer: '<https://github.com/act10ns/slack|act10ns/slack> #6',
Expand Down
3 changes: 2 additions & 1 deletion __tests__/workflow_run.test.ts
Expand Up @@ -74,6 +74,7 @@ test('workflow_run event to slack', async () => {
username: 'GitHub-CI',
icon_url: 'https://octodex.github.com/images/femalecodertocat.png',
channel: '#actions',
timeout: 0,
attachments: [
{
mrkdwn_in: ['pretext', 'text', 'fields'],
Expand All @@ -84,7 +85,7 @@ test('workflow_run event to slack', async () => {
author_icon: 'https://avatars.githubusercontent.com/u/615057?v=4',
title: 'GitHub Actions',
title_link: 'https://support.github.com',
text: '*<https://github.com/act10ns/slack/actions?query=workflow:workflow-run|Workflow _workflow-run_ job _on-success_ triggered by _workflow_run_ is _SUCCESS_>* for <https://github.com/act10ns/slack/commits/master|`master`>\n',
text: '*<https://github.com/act10ns/slack/actions?query=workflow:%22workflow-run%22|Workflow _workflow-run_ job _on-success_ triggered by _workflow_run_ is _SUCCESS_>* for <https://github.com/act10ns/slack/commits/master|`master`>\n',
fields: [],
fallback: '[GitHub] workflow-run #4 is SUCCESS',
footer: '<https://github.com/act10ns/slack|act10ns/slack> workflow-run #4',
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Expand Up @@ -25,7 +25,7 @@ inputs:
description: Override message format for step
required: false
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
branding:
icon: alert-circle
Expand Down

0 comments on commit a570144

Please sign in to comment.