generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b877d2f
commit bb89cd5
Showing
15 changed files
with
13,726 additions
and
2,912 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
import * as core from '@actions/core' | ||
import { run } from '../src/main' | ||
import {run} from '../src/main' | ||
|
||
jest.mock('@actions/core'); | ||
jest.mock('@actions/core') | ||
|
||
describe('When running the action', () => { | ||
const fakeSetOutput = core.setOutput as jest.MockedFunction<typeof core.setOutput>; | ||
const fakeSetOutput = core.setOutput as jest.MockedFunction< | ||
typeof core.setOutput | ||
> | ||
|
||
test('it should set the release-url output parameter', async () => { | ||
await run() | ||
expect(fakeSetOutput).toHaveBeenCalledWith('release-url', expect.anything()) | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
name: 'Auto Release Draft' | ||
description: 'Drafts a GitHub release with the changes introduced by a newly created version tag.' | ||
author: 'Julio Coelho' | ||
inputs: | ||
repo-token: | ||
description: 'The GITHUB_TOKEN used to authenticate to the current repository' | ||
required: true | ||
outputs: | ||
release-url: | ||
description: 'The URL of the GitHub release that was drafted' | ||
runs: | ||
using: 'node12' | ||
main: 'dist/index.js' | ||
branding: | ||
color: green | ||
icon: tag |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.