mirror of https://github.com/aminya/setup-cpp
fix: fix eslint warnings
This commit is contained in:
parent
01d80b8e02
commit
d98deda888
|
@ -1,3 +1,4 @@
|
||||||
|
/* eslint-disable import/no-extraneous-dependencies */
|
||||||
const { minify } = require("terser")
|
const { minify } = require("terser")
|
||||||
const { readFileSync, writeFileSync } = require("fs")
|
const { readFileSync, writeFileSync } = require("fs")
|
||||||
const { join, dirname } = require("path")
|
const { join, dirname } = require("path")
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -5,7 +5,7 @@ import { getVersion } from "../../default_versions"
|
||||||
jest.setTimeout(3000000)
|
jest.setTimeout(3000000)
|
||||||
describe("setup-gcc", () => {
|
describe("setup-gcc", () => {
|
||||||
it("should setup gcc", async () => {
|
it("should setup gcc", async () => {
|
||||||
const version = getVersion("gcc", undefined) ?? "11"
|
const version = getVersion("gcc", undefined) || "11"
|
||||||
const installInfo = await setupGcc(version, "", process.arch)
|
const installInfo = await setupGcc(version, "", process.arch)
|
||||||
|
|
||||||
let gpp = "g++"
|
let gpp = "g++"
|
||||||
|
|
|
@ -3,5 +3,5 @@ export function isCI() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isGitHubCI() {
|
export function isGitHubCI() {
|
||||||
return isCI() && process.env.GITHUB_ACTIONS == "true"
|
return isCI() && process.env.GITHUB_ACTIONS === "true"
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ import execa from "execa"
|
||||||
let hasChoco = false
|
let hasChoco = false
|
||||||
|
|
||||||
/** A function that installs a package using choco */
|
/** A function that installs a package using choco */
|
||||||
export async function setupChocoPack(name: string, version?: string, args: string[] = []): Promise<InstallationInfo> {
|
export function setupChocoPack(name: string, version?: string, args: string[] = []): InstallationInfo {
|
||||||
if (!hasChoco || which.sync("choco", { nothrow: true }) === null) {
|
if (!hasChoco || which.sync("choco", { nothrow: true }) === null) {
|
||||||
setupChocolatey("", "", process.arch)
|
setupChocolatey("", "", process.arch)
|
||||||
hasChoco = true
|
hasChoco = true
|
||||||
|
|
Loading…
Reference in New Issue