mirror of
https://github.com/goreleaser/goreleaser-action
synced 2026-07-09 19:17:31 +00:00
feat: lock this major version of the action to use '~> v1' as 'latest' (#461)
* feat: warn about using 'latest' * feat: use "~> v1" as latest Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * feat: default to "~> v1" instead of "latest" Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> --------- Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
2953d07480
commit
f1dbd532c3
@@ -18,6 +18,16 @@ describe('install', () => {
|
||||
expect(fs.existsSync(bin)).toBe(true);
|
||||
}, 100000);
|
||||
|
||||
it('acquires latest v1 version of GoReleaser', async () => {
|
||||
const bin = await goreleaser.install('goreleaser', '~> v1');
|
||||
expect(fs.existsSync(bin)).toBe(true);
|
||||
}, 100000);
|
||||
|
||||
it('acquires latest v1 version of GoReleaser Pro', async () => {
|
||||
const bin = await goreleaser.install('goreleaser-pro', '~> v1');
|
||||
expect(fs.existsSync(bin)).toBe(true);
|
||||
}, 100000);
|
||||
|
||||
it('acquires latest version of GoReleaser Pro', async () => {
|
||||
const bin = await goreleaser.install('goreleaser-pro', 'latest');
|
||||
expect(fs.existsSync(bin)).toBe(true);
|
||||
|
||||
Reference in New Issue
Block a user