Skip to content

Commit

Permalink
bump Node and Kompose versions (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlnunez89 authored Mar 6, 2024
1 parent 3488ae9 commit eaf7463
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ outputs:
branding:
color: 'green' # optional, decorates the entry in the GitHub Marketplace
runs:
using: 'node16'
using: 'node20'
main: 'lib/index.js'
2 changes: 1 addition & 1 deletion src/kompose-util.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe('Testing all funcitons in kompose-util file.', () => {
path.join('pathToCachedTool', 'kompose.exe')
)
expect(core.getInput).toBeCalledWith('kompose-version', {required: false})
expect(toolCache.find).toBeCalledWith('kompose', 'v1.18.0')
expect(toolCache.find).toBeCalledWith('kompose', 'v1.32.0')
})

test('getKomposePath() - return path to specified version kompose from toolCache', async () => {
Expand Down
6 changes: 3 additions & 3 deletions src/kompose-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from './utilities'

const komposeToolName = 'kompose'
const stableKomposeVersion = 'v1.18.0'
const defaultStableKomposeVersion = 'v1.32.0'

export async function getKomposePath() {
let komposePath = ''
Expand Down Expand Up @@ -52,7 +52,7 @@ export async function getKomposePath() {
}

export async function downloadKompose(
version: string = stableKomposeVersion
version: string = defaultStableKomposeVersion
): Promise<string> {
let cachedToolpath = toolCache.find(komposeToolName, version)
if (!cachedToolpath) {
Expand All @@ -69,7 +69,7 @@ export async function downloadKompose(

export async function installKompose(version: string) {
if (isEqual(version, LATEST)) {
version = stableKomposeVersion
version = defaultStableKomposeVersion
}
core.debug(util.format('Downloading kompose version %s', version))
return await downloadKompose(version)
Expand Down

0 comments on commit eaf7463

Please sign in to comment.