mirror of
https://github.com/goreleaser/goreleaser-action
synced 2026-06-30 00:07:29 +00:00
fix: use @action/github (#390)
* fix: use @action/github Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com> Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com> Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com> * Update README.md Co-authored-by: CrazyMax <github@crazymax.dev> * Update action.yml Co-authored-by: CrazyMax <github@crazymax.dev> --------- Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com> Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com> Co-authored-by: CrazyMax <github@crazymax.dev>
This commit is contained in:
committed by
GitHub
parent
b1a238106b
commit
9754a253a8
@@ -4,22 +4,26 @@ import * as goreleaser from '../src/goreleaser';
|
||||
|
||||
describe('install', () => {
|
||||
it('acquires v0.182.0 version of GoReleaser', async () => {
|
||||
const bin = await goreleaser.install('goreleaser', 'v0.182.0');
|
||||
const githubToken = process.env.GITHUB_TOKEN || '';
|
||||
const bin = await goreleaser.install('goreleaser', 'v0.182.0', githubToken);
|
||||
expect(fs.existsSync(bin)).toBe(true);
|
||||
}, 100000);
|
||||
|
||||
it('acquires latest version of GoReleaser', async () => {
|
||||
const bin = await goreleaser.install('goreleaser', 'latest');
|
||||
const githubToken = process.env.GITHUB_TOKEN || '';
|
||||
const bin = await goreleaser.install('goreleaser', 'latest', githubToken);
|
||||
expect(fs.existsSync(bin)).toBe(true);
|
||||
}, 100000);
|
||||
|
||||
it('acquires v0.182.0-pro version of GoReleaser Pro', async () => {
|
||||
const bin = await goreleaser.install('goreleaser-pro', 'v0.182.0-pro');
|
||||
const githubToken = process.env.GITHUB_TOKEN || '';
|
||||
const bin = await goreleaser.install('goreleaser-pro', 'v0.182.0-pro', githubToken);
|
||||
expect(fs.existsSync(bin)).toBe(true);
|
||||
}, 100000);
|
||||
|
||||
it('acquires latest version of GoReleaser Pro', async () => {
|
||||
const bin = await goreleaser.install('goreleaser-pro', 'latest');
|
||||
const githubToken = process.env.GITHUB_TOKEN || '';
|
||||
const bin = await goreleaser.install('goreleaser-pro', 'latest', githubToken);
|
||||
expect(fs.existsSync(bin)).toBe(true);
|
||||
}, 100000);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user