Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('action', () => {
await main.run()
expect(action).toHaveReturned()
expect(action).not.toThrow()
expect(setFailed).not.toBeCalled()
expect(setFailed).not.toHaveBeenCalled()
expect(getInput).toHaveBeenCalledWith(OptionName.VERSION)
expect(getInput).toHaveBeenCalledWith(OptionName.OS)
expect(getInput).toHaveBeenCalledWith(OptionName.ARCH)
Expand All @@ -68,7 +68,7 @@ describe('action', () => {
await main.run()
expect(action).toHaveReturned()
expect(action).not.toThrow()
expect(setFailed).not.toBeCalled()
expect(setFailed).not.toHaveBeenCalled()
expect(setOutput).toHaveBeenCalledWith(
ActionOutputName.PATH,
expect.anything()
Expand All @@ -88,7 +88,7 @@ describe('action', () => {
await main.run()
}
expect(runner).not.toThrow()
expect(setFailed).toBeCalled()
expect(setFailed).toHaveBeenCalled()
})

// it('should support downloading from a custom url', async () => {
Expand Down Expand Up @@ -145,7 +145,7 @@ describe('action', () => {
})
expect(action).toHaveReturned()
expect(action).not.toThrow()
expect(setFailed).not.toBeCalled()
expect(setFailed).not.toHaveBeenCalled()
expect(setOutput).toHaveBeenCalledWith(
ActionOutputName.PATH,
expect.anything()
Expand All @@ -164,7 +164,7 @@ describe('action', () => {
})
expect(action).toHaveReturned()
expect(action).not.toThrow()
expect(setFailed).not.toBeCalled()
expect(setFailed).not.toHaveBeenCalled()
expect(setOutput).toHaveBeenCalledWith(
ActionOutputName.PATH,
expect.anything()
Expand All @@ -187,7 +187,7 @@ describe('action', () => {
)
if (err) throw err
}
expect(t).toThrowError()
expect(t).toThrow()
getInput.mockImplementation((name: string): string => {
switch (name) {
case OptionName.OS:
Expand All @@ -200,7 +200,7 @@ describe('action', () => {
})

await main.run({ os, arch })
expect(setFailed).toBeCalled()
expect(setFailed).toHaveBeenCalled()
})
}
const itShouldAllow = (os: ElideOS, arch: ElideArch) => {
Expand All @@ -215,17 +215,16 @@ describe('action', () => {
)
if (err) throw err
}
expect(t).not.toThrowError()
expect(t).not.toThrow()
})
}

// test rejected platforms
itShouldReject(ElideOS.WINDOWS, ElideArch.AMD64)
itShouldReject(ElideOS.WINDOWS, ElideArch.ARM64)
itShouldReject(ElideOS.MACOS, ElideArch.AMD64)
itShouldReject(ElideOS.LINUX, ElideArch.ARM64)

// test allowed platforms
itShouldAllow(ElideOS.LINUX, ElideArch.AMD64)
itShouldAllow(ElideOS.MACOS, ElideArch.ARM64)
itShouldAllow(ElideOS.MACOS, ElideArch.AMD64)
itShouldAllow(ElideOS.WINDOWS, ElideArch.AMD64)
})
Binary file modified dist/index.js.cache
Binary file not shown.
12 changes: 6 additions & 6 deletions dist/index.js.cache.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,40 +26,40 @@
"node": ">=20"
},
"dependencies": {
"@actions/cache": "4.0.3",
"@actions/cache": "4.1.0",
"@actions/core": "1.11.1",
"@actions/exec": "1.1.1",
"@actions/github": "6.0.1",
"@actions/http-client": "2.2.3",
"@actions/io": "1.1.3",
"@actions/http-client": "3.0.0",
"@actions/io": "2.0.0",
"@actions/tool-cache": "2.0.2",
"octokit": "3.1.1",
"which": "5.0.0"
},
"devDependencies": {
"@commitlint/cli": "19.8.1",
"@commitlint/config-conventional": "19.8.1",
"@jest/globals": "29.7.0",
"@types/jest": "29.5.14",
"@types/node": "22.15.21",
"@typescript-eslint/eslint-plugin": "8.32.1",
"@typescript-eslint/parser": "8.32.1",
"@vercel/ncc": "0.38.3",
"bun": "1.2.13",
"@jest/globals": "30.2.0",
"@types/jest": "30.0.0",
"@types/node": "24.10.0",
"@typescript-eslint/eslint-plugin": "8.46.3",
"@typescript-eslint/parser": "8.46.3",
"@vercel/ncc": "0.38.4",
"bun": "1.3.1",
"eslint": "9.27.0",
"eslint-plugin-github": "6.0.0",
"eslint-plugin-jest": "28.11.0",
"eslint-plugin-jsonc": "2.20.1",
"eslint-plugin-prettier": "5.4.0",
"husky": "9.1.7",
"jest": "29.7.0",
"jest": "30.2.0",
"jest-sonar-reporter": "2.0.0",
"js-yaml": "4.1.0",
"make-coverage-badge": "1.2.0",
"prettier": "3.5.3",
"prettier": "3.6.2",
"prettier-eslint": "16.4.2",
"ts-jest": "29.3.4",
"typescript": "5.8.3"
"ts-jest": "29.4.5",
"typescript": "5.9.3"
},
"scripts": {
"turbo:build": "pnpm exec turbo build --token $BUILDLESS_APIKEY --no-daemon --remote-only",
Expand Down
Loading
Loading