Skip to content

Commit

Permalink
Updating VIB GitHub Action to Node.js 20 (#169)
Browse files Browse the repository at this point in the history
* Updating VIB GitHub Action to Node.js 20

---------

Signed-off-by: Gloria Delgado <gloriad@vmware.com>
  • Loading branch information
gdelgadot committed Feb 8, 2024
1 parent f4e9113 commit f325790
Show file tree
Hide file tree
Showing 14 changed files with 27,019 additions and 7,960 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Expand Up @@ -17,10 +17,10 @@ jobs:
with:
token: ${{ secrets.VIB_ACTION_TOKEN }}

- name: Set Node.js 16.x
- name: Set Node.js 20
uses: actions/setup-node@v2
with:
node-version: 16.x
node-version: 20.x

- name: Git config
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/validate.yaml
Expand Up @@ -23,10 +23,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set Node.js 16.x
- name: Set Node.js 20
uses: actions/setup-node@v2
with:
node-version: 16.x
node-version: 20.x

- name: Install dependencies
run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion __tests__/src/action.it.test.ts
Expand Up @@ -6,7 +6,7 @@ import fs from 'fs'

const TWO_MINUTES = 1200000

jest.spyOn(core, 'setFailed')
jest.spyOn(core, 'setFailed').mockImplementation()

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

Expand Down
2 changes: 1 addition & 1 deletion __tests__/src/action.test.ts
Expand Up @@ -18,7 +18,7 @@ jest.mock('../../src/client/vib')
jest.spyOn(artifact, 'create')
jest.spyOn(core, 'error')
jest.spyOn(core, 'info')
jest.spyOn(core, 'setFailed')
jest.spyOn(core, 'setFailed').mockImplementation()
jest.spyOn(core, 'warning')

const STARTING_ENV = process.env
Expand Down
2 changes: 1 addition & 1 deletion __tests__/src/client/clients.test.ts
Expand Up @@ -16,7 +16,7 @@ describe("Given a custom client", () => {
jest.spyOn(core, "info").mockImplementation(msg => console.log("::info:: " + msg))
jest.spyOn(core, "warning").mockImplementation(msg => console.log("::warning:: " + msg))
jest.spyOn(core, "debug").mockImplementation(msg => console.log("::debug:: " + msg))
jest.spyOn(core, "setFailed")
jest.spyOn(core, "setFailed").mockImplementation()
})

beforeEach(async () => {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/src/client/csp.test.ts
Expand Up @@ -11,7 +11,7 @@ describe("Given a CSP client", () => {
jest.spyOn(core, "info").mockImplementation(msg => console.log("::info:: " + msg))
jest.spyOn(core, "warning").mockImplementation(msg => console.log("::warning:: " + msg))
jest.spyOn(core, "debug").mockImplementation(msg => console.log("::debug:: " + msg))
jest.spyOn(core, "setFailed")
jest.spyOn(core, "setFailed").mockImplementation()
})

beforeEach(async () => {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/src/config.test.ts
Expand Up @@ -12,7 +12,7 @@ describe("Given a configuration", () => {
jest.spyOn(core, "info").mockImplementation(msg => console.log("::info:: " + msg))
jest.spyOn(core, "warning").mockImplementation(msg => console.log("::warning:: " + msg))
jest.spyOn(core, "debug").mockImplementation(msg => console.log("::debug:: " + msg))
jest.spyOn(core, "setFailed")
jest.spyOn(core, "setFailed").mockImplementation()
})

beforeEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Expand Up @@ -54,7 +54,7 @@ outputs:
result:
description: 'The resulting report from the execution graph with tasks executed and their statuses.'
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'command'
Expand Down

0 comments on commit f325790

Please sign in to comment.