Skip to content

Commit

Permalink
bump dependencies and add getPinnedVersion resolver to speed up pinne…
Browse files Browse the repository at this point in the history
…d version lookups
  • Loading branch information
imranismail committed Oct 24, 2023
1 parent a76db1c commit 2ba527d
Show file tree
Hide file tree
Showing 12 changed files with 39,058 additions and 27,566 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"semi": "off",
"@typescript-eslint/semi": ["error", "never"],
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unbound-method": "error"
"@typescript-eslint/unbound-method": "error",
"i18n-text/no-en": "off"
},
"env": {
"node": true,
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 17.7.1
nodejs 20.8.1
16 changes: 16 additions & 0 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,22 @@ describe('installer tests', () => {
}
})

it('Acquires kustomize version 5.2.1', async () => {
await installer.getKustomize('5.2.1')
const kustomizeDir = path.join(toolDir, 'kustomize', '5.2.1', os.arch())

expect(fs.existsSync(`${kustomizeDir}.complete`)).toBe(true)

if (IS_WINDOWS) {
expect(fs.existsSync(path.join(kustomizeDir, 'kustomize.exe'))).toBe(true)
} else {
expect(fs.existsSync(path.join(kustomizeDir, 'kustomize'))).toBe(true)
expect(() =>
fs.accessSync(path.join(kustomizeDir, 'kustomize'), fs.constants.X_OK)
).not.toThrow()
}
})

it('Acquires kustomize version 3.2.0', async () => {
await installer.getKustomize('3.2.0')
const kustomizeDir = path.join(toolDir, 'kustomize', '3.2.0', os.arch())
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ inputs:
required: false
default: 'true'
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
Loading

0 comments on commit 2ba527d

Please sign in to comment.