Skip to content

Commit

Permalink
feat: implement (optional) semver parsing of version
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko committed Jun 7, 2020
1 parent 05d7a2c commit 4054f23
Show file tree
Hide file tree
Showing 4 changed files with 11,403 additions and 3,127 deletions.
10 changes: 10 additions & 0 deletions __tests__/github.test.ts
Expand Up @@ -11,4 +11,14 @@ describe('github', () => {
expect(release).not.toBeNull();
expect(release?.tag_name).toEqual('v0.117.0');
});
it('returns v0.132.1 GoReleaser GitHub release', async () => {
const release = await github.getRelease('~> 0.132');

if (process.env.GITHUB_TOKEN) {
expect(release).not.toBeNull();
expect(release?.tag_name).toEqual('v0.132.1');
} else {
expect(release).toBeNull();
}
});
});

0 comments on commit 4054f23

Please sign in to comment.