mirror of
https://github.com/goreleaser/goreleaser-action
synced 2026-07-10 03:57:32 +00:00
gen
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { describe, expect, it } from '@jest/globals';
|
import {describe, expect, it} from '@jest/globals';
|
||||||
import * as github from '../src/github';
|
import * as github from '../src/github';
|
||||||
|
|
||||||
describe('getRelease', () => {
|
describe('getRelease', () => {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { describe, expect, it } from '@jest/globals';
|
import {describe, expect, it} from '@jest/globals';
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
import * as goreleaser from '../src/goreleaser';
|
import * as goreleaser from '../src/goreleaser';
|
||||||
|
|
||||||
@@ -38,7 +38,6 @@ describe('install', () => {
|
|||||||
expect(fs.existsSync(bin)).toBe(true);
|
expect(fs.existsSync(bin)).toBe(true);
|
||||||
}, 100000);
|
}, 100000);
|
||||||
|
|
||||||
|
|
||||||
it('acquires latest version of GoReleaser Pro', async () => {
|
it('acquires latest version of GoReleaser Pro', async () => {
|
||||||
const bin = await goreleaser.install('goreleaser-pro', 'latest');
|
const bin = await goreleaser.install('goreleaser-pro', 'latest');
|
||||||
expect(fs.existsSync(bin)).toBe(true);
|
expect(fs.existsSync(bin)).toBe(true);
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -17,7 +17,7 @@ export const getRelease = async (distribution: string, version: string): Promise
|
|||||||
|
|
||||||
export const getReleaseTag = async (distribution: string, version: string): Promise<GitHubRelease> => {
|
export const getReleaseTag = async (distribution: string, version: string): Promise<GitHubRelease> => {
|
||||||
if (version === 'nightly') {
|
if (version === 'nightly') {
|
||||||
return { tag_name: version };
|
return {tag_name: version};
|
||||||
}
|
}
|
||||||
const tag: string = (await resolveVersion(distribution, version)) || version;
|
const tag: string = (await resolveVersion(distribution, version)) || version;
|
||||||
const suffix: string = goreleaser.distribSuffix(distribution);
|
const suffix: string = goreleaser.distribSuffix(distribution);
|
||||||
|
|||||||
Reference in New Issue
Block a user