mirror of
https://github.com/goreleaser/goreleaser-action
synced 2026-06-29 21:29:42 +00:00
test: assert isNightlyTag accepts legacy fallback
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user