Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,6 @@ __tests__/runner/*
lib/**/*

_temp/

# Coverage
coverage/
6 changes: 5 additions & 1 deletion __test__/installer.test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import { promises as fs } from "fs";
import * as path from "path";
import { fileURLToPath } from "url";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

const tempDir = path.join(__dirname, "_temp");
process.env["RUNNER_TEMP"] = tempDir;

import * as io from "@actions/io";
import * as exec from "@actions/exec";
import * as installer from "../src/installer";
import * as installer from "../src/installer.js";

describe("installer", () => {
beforeAll(async () => {
Expand Down
2 changes: 1 addition & 1 deletion __test__/main.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isGolangciLintV1 } from "../src/main";
import { isGolangciLintV1 } from "../src/main.js";

describe("isV1", () => {
it("should return false if the version is latest", () => {
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ inputs:

runs:
using: "node24"
main: "dist/index.js"
main: "dist/index.cjs"
branding:
icon: "check-circle"
color: "blue"
6 changes: 6 additions & 0 deletions dist/cache.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

91 changes: 91 additions & 0 deletions dist/cache.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/flags.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions dist/flags.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading