Skip to content

Commit f325790

Browse files
authored
Updating VIB GitHub Action to Node.js 20 (#169)
* Updating VIB GitHub Action to Node.js 20 --------- Signed-off-by: Gloria Delgado <gloriad@vmware.com>
1 parent f4e9113 commit f325790

14 files changed

+27019
-7960
lines changed

.github/workflows/release.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
with:
1818
token: ${{ secrets.VIB_ACTION_TOKEN }}
1919

20-
- name: Set Node.js 16.x
20+
- name: Set Node.js 20
2121
uses: actions/setup-node@v2
2222
with:
23-
node-version: 16.x
23+
node-version: 20.x
2424

2525
- name: Git config
2626
run: |

.github/workflows/validate.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
- name: Checkout
2424
uses: actions/checkout@v2
2525

26-
- name: Set Node.js 16.x
26+
- name: Set Node.js 20
2727
uses: actions/setup-node@v2
2828
with:
29-
node-version: 16.x
29+
node-version: 20.x
3030

3131
- name: Install dependencies
3232
run: npm ci

__tests__/src/action.it.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import fs from 'fs'
66

77
const TWO_MINUTES = 1200000
88

9-
jest.spyOn(core, 'setFailed')
9+
jest.spyOn(core, 'setFailed').mockImplementation()
1010

1111
describe('Given a VIB Action', () => {
1212

__tests__/src/action.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jest.mock('../../src/client/vib')
1818
jest.spyOn(artifact, 'create')
1919
jest.spyOn(core, 'error')
2020
jest.spyOn(core, 'info')
21-
jest.spyOn(core, 'setFailed')
21+
jest.spyOn(core, 'setFailed').mockImplementation()
2222
jest.spyOn(core, 'warning')
2323

2424
const STARTING_ENV = process.env

__tests__/src/client/clients.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe("Given a custom client", () => {
1616
jest.spyOn(core, "info").mockImplementation(msg => console.log("::info:: " + msg))
1717
jest.spyOn(core, "warning").mockImplementation(msg => console.log("::warning:: " + msg))
1818
jest.spyOn(core, "debug").mockImplementation(msg => console.log("::debug:: " + msg))
19-
jest.spyOn(core, "setFailed")
19+
jest.spyOn(core, "setFailed").mockImplementation()
2020
})
2121

2222
beforeEach(async () => {

__tests__/src/client/csp.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe("Given a CSP client", () => {
1111
jest.spyOn(core, "info").mockImplementation(msg => console.log("::info:: " + msg))
1212
jest.spyOn(core, "warning").mockImplementation(msg => console.log("::warning:: " + msg))
1313
jest.spyOn(core, "debug").mockImplementation(msg => console.log("::debug:: " + msg))
14-
jest.spyOn(core, "setFailed")
14+
jest.spyOn(core, "setFailed").mockImplementation()
1515
})
1616

1717
beforeEach(async () => {

__tests__/src/config.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe("Given a configuration", () => {
1212
jest.spyOn(core, "info").mockImplementation(msg => console.log("::info:: " + msg))
1313
jest.spyOn(core, "warning").mockImplementation(msg => console.log("::warning:: " + msg))
1414
jest.spyOn(core, "debug").mockImplementation(msg => console.log("::debug:: " + msg))
15-
jest.spyOn(core, "setFailed")
15+
jest.spyOn(core, "setFailed").mockImplementation()
1616
})
1717

1818
beforeEach(() => {

action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ outputs:
5454
result:
5555
description: 'The resulting report from the execution graph with tasks executed and their statuses.'
5656
runs:
57-
using: 'node16'
57+
using: 'node20'
5858
main: 'dist/index.js'
5959
branding:
6060
icon: 'command'

0 commit comments

Comments
 (0)