-
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.
feat: Use native GitHub Action tools to download assets and use GitHu…
…b API (#187) * Use native GitHub Action tools to download assets and use GitHub API * Fix unexpected output when tag not found * Use GitHub Action exec * Add screenshot Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
- Loading branch information
2 people
authored and
GitHub
committed
May 7, 2020
1 parent
88f1da8
commit 6c7b10c
Showing
16 changed files
with
3,576 additions
and
26,477 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 |
|---|---|---|
|
|
@@ -12,6 +12,8 @@ | |
|
|
||
| --- | ||
|
|
||
|  | ||
|
|
||
| ## Usage | ||
|
|
||
| ```yaml | ||
|
|
||
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 |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| import * as git from '../src/git'; | ||
|
|
||
| describe('git', () => { | ||
| it('returns git tag', async () => { | ||
| const tag: string = await git.getTag(); | ||
| console.log(tag); | ||
| expect(tag).not.toEqual(''); | ||
| }); | ||
| it('checks if tag is dirty', async () => { | ||
| expect(await git.isTagDirty('v1.3.1')).toBe(true); | ||
| }); | ||
| it('returns short commit', async () => { | ||
| const commit: string = await git.getShortCommit(); | ||
| console.log(commit); | ||
| expect(commit).not.toEqual(''); | ||
| }); | ||
| }); |
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 |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import * as github from '../src/github'; | ||
|
|
||
| describe('github', () => { | ||
| it('returns latest GoReleaser GitHub release', async () => { | ||
| const release = await github.getRelease('latest'); | ||
| console.log(release); | ||
| expect(release).not.toBeNull(); | ||
| expect(release?.tag_name).not.toEqual(''); | ||
| }); | ||
| it('returns v0.117.0 GoReleaser GitHub release', async () => { | ||
| const release = await github.getRelease('v0.117.0'); | ||
| console.log(release); | ||
| expect(release).not.toBeNull(); | ||
| expect(release?.tag_name).toEqual('v0.117.0'); | ||
| }); | ||
| }); |
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
Oops, something went wrong.