mirror of
https://github.com/goreleaser/goreleaser-action.git
synced 2026-05-14 23:00:33 +00:00
* Use native GitHub Action tools to download assets and use GitHub API * Fix unexpected output when tag not found * Use GitHub Action exec * Add screenshot Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
16 lines
548 B
TypeScript
16 lines
548 B
TypeScript
import fs = require('fs');
|
|
import * as installer from '../src/installer';
|
|
|
|
describe('installer', () => {
|
|
it('acquires v0.117.0 version of GoReleaser', async () => {
|
|
const goreleaser = await installer.getGoReleaser('v0.117.0');
|
|
console.log(goreleaser);
|
|
expect(fs.existsSync(goreleaser)).toBe(true);
|
|
}, 100000);
|
|
|
|
it('acquires latest version of GoReleaser', async () => {
|
|
const goreleaser = await installer.getGoReleaser('latest');
|
|
console.log(goreleaser);
|
|
expect(fs.existsSync(goreleaser)).toBe(true);
|
|
}, 100000);
|
|
});
|