Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos Alexandro Becker
2024-05-28 09:50:41 -03:00
parent 2d86541f03
commit 9b0b610e34
5 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -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 -2
View File
@@ -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);
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -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);