Skip to content

Commit

Permalink
Merge pull request #15 from rimrul/node20
Browse files Browse the repository at this point in the history
Update to node 20
  • Loading branch information
dscho authored Nov 13, 2023
2 parents cbf3e59 + 3e2be6f commit 44ef583
Show file tree
Hide file tree
Showing 9 changed files with 5,873 additions and 9,792 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
name: Publish GitHub Release from tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
token: ${{ secrets.PUSH_RELEASE_TRAINS_PAT }}
fetch-depth: 0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: npm ci
- run: npm run lint
- run: npm run test
Expand Down
14 changes: 7 additions & 7 deletions __tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ test('handles feeds without any entries', async () => {
mockHTTPSGet.__RETURN__ = '<feed xmlns="http://www.w3.org/2005/Atom" />'
await run()

expect(https.get).toBeCalledTimes(1)
expect(octokit.issues.listForRepo).not.toBeCalled()
expect(octokit.issues.create).not.toBeCalled()
expect(https.get).toHaveBeenCalledTimes(1)
expect(octokit.issues.listForRepo).not.toHaveBeenCalled()
expect(octokit.issues.create).not.toHaveBeenCalled()
})

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

expect(https.get).toBeCalledTimes(1)
expect(octokit.issues.listForRepo).toBeCalledTimes(1)
expect(octokit.issues.create).toBeCalledWith({
expect(https.get).toHaveBeenCalledTimes(1)
expect(octokit.issues.listForRepo).toHaveBeenCalledTimes(1)
expect(octokit.issues.create).toHaveBeenCalledWith({
owner: 'owner',
repo: 'repo',
title: new Date(date).toUTCString(),
Expand Down Expand Up @@ -106,7 +106,7 @@ Signed-off-by: Johannes Schindelin &amp;lt;johannes.schindelin@gmx.de&amp;gt;&lt
octokit.issues.listForRepo.mockReturnValueOnce({ data: [] })
await run()

expect(octokit.issues.create).toBeCalledWith({
expect(octokit.issues.create).toHaveBeenCalledWith({
owner: 'owner',
repo: 'repo',
title: 'ci(release-tags): use newer versions of Actions',
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ outputs:
issues:
description: "issue IDs, comma separated"
runs:
using: "node16"
using: "node20"
main: "dist/index.js"
Loading

0 comments on commit 44ef583

Please sign in to comment.