mirror of
https://github.com/goreleaser/goreleaser-action.git
synced 2026-05-14 14:50:32 +00:00
test: assert isNightlyTag accepts legacy fallback
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
482db5f7c3
commit
2c8756b88a
1 changed files with 2 additions and 2 deletions
|
|
@ -59,13 +59,13 @@ describe('getRelease', () => {
|
|||
it('resolves nightly to a vX.Y.Z-<sha>-nightly GoReleaser release', async () => {
|
||||
const release = await github.getRelease('goreleaser', 'nightly');
|
||||
expect(release).not.toBeNull();
|
||||
expect(release?.tag_name).toMatch(github.nightlyTagRegex);
|
||||
expect(github.isNightlyTag(release.tag_name)).toBe(true);
|
||||
});
|
||||
|
||||
it('resolves nightly to a vX.Y.Z-<sha>-nightly GoReleaser Pro release', async () => {
|
||||
const release = await github.getRelease('goreleaser-pro', 'nightly');
|
||||
expect(release).not.toBeNull();
|
||||
expect(release?.tag_name).toMatch(github.nightlyTagRegex);
|
||||
expect(github.isNightlyTag(release.tag_name)).toBe(true);
|
||||
});
|
||||
|
||||
it('returns v0.182.0 GoReleaser Pro GitHub release', async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue