Skip to content

Commit 44ef583

Browse files
authored
Merge pull request #15 from rimrul/node20
Update to node 20
2 parents cbf3e59 + 3e2be6f commit 44ef583

9 files changed

+5873
-9792
lines changed

.github/workflows/release-tag.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Publish GitHub Release from tag
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
with:
1818
token: ${{ secrets.PUSH_RELEASE_TRAINS_PAT }}
1919
fetch-depth: 0

.github/workflows/verify-dist.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: Build
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
- run: npm ci
1616
- run: npm run lint
1717
- run: npm run test

__tests__/index.test.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ test('handles feeds without any entries', async () => {
5050
mockHTTPSGet.__RETURN__ = '<feed xmlns="http://www.w3.org/2005/Atom" />'
5151
await run()
5252

53-
expect(https.get).toBeCalledTimes(1)
54-
expect(octokit.issues.listForRepo).not.toBeCalled()
55-
expect(octokit.issues.create).not.toBeCalled()
53+
expect(https.get).toHaveBeenCalledTimes(1)
54+
expect(octokit.issues.listForRepo).not.toHaveBeenCalled()
55+
expect(octokit.issues.create).not.toHaveBeenCalled()
5656
})
5757

5858
test('handles feed entries without titles', async () => {
@@ -62,9 +62,9 @@ test('handles feed entries without titles', async () => {
6262
octokit.issues.listForRepo.mockReturnValueOnce({ data: [] })
6363
await run()
6464

65-
expect(https.get).toBeCalledTimes(1)
66-
expect(octokit.issues.listForRepo).toBeCalledTimes(1)
67-
expect(octokit.issues.create).toBeCalledWith({
65+
expect(https.get).toHaveBeenCalledTimes(1)
66+
expect(octokit.issues.listForRepo).toHaveBeenCalledTimes(1)
67+
expect(octokit.issues.create).toHaveBeenCalledWith({
6868
owner: 'owner',
6969
repo: 'repo',
7070
title: new Date(date).toUTCString(),
@@ -106,7 +106,7 @@ Signed-off-by: Johannes Schindelin &amp;lt;[email protected]&amp;gt;&lt
106106
octokit.issues.listForRepo.mockReturnValueOnce({ data: [] })
107107
await run()
108108

109-
expect(octokit.issues.create).toBeCalledWith({
109+
expect(octokit.issues.create).toHaveBeenCalledWith({
110110
owner: 'owner',
111111
repo: 'repo',
112112
title: 'ci(release-tags): use newer versions of Actions',

action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ outputs:
3232
issues:
3333
description: "issue IDs, comma separated"
3434
runs:
35-
using: "node16"
35+
using: "node20"
3636
main: "dist/index.js"

0 commit comments

Comments
 (0)