Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Armaldio authored Dec 23, 2024
1 parent d549eb6 commit 2e2a35b
Show file tree
Hide file tree
Showing 7 changed files with 1,664 additions and 592 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,4 @@ __tests__/runner/*
# IDE files
.idea
*.code-workspace
dist/downloads/*
5 changes: 3 additions & 2 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ describe('action', () => {
setOutputMock = vi.spyOn(core, 'setOutput').mockImplementation()
})


it('sets a failed status for unsupported platform', async () => {
// Set the action's inputs as return values from core.getInput()
getInputMock.mockImplementation(name => {
Expand All @@ -54,7 +53,9 @@ describe('action', () => {
expect(runMock).toHaveReturned()

// Verify that the core.setFailed function was called correctly
expect(setFailedMock).toHaveBeenCalledWith('You are using an unsupported platform')
expect(setFailedMock).toHaveBeenCalledWith(
'You are using an unsupported platform'
)
expect(errorMock).not.toHaveBeenCalled()
})
})
16 changes: 13 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

Large diffs are not rendered by default.

Loading

0 comments on commit 2e2a35b

Please sign in to comment.