Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
ce34998f1f | |||
1e4a1137a8 | |||
eda878dc56 | |||
f7d08adb03 |
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: "build-test"
|
||||
name: "build-and-test"
|
||||
on: # rebuild any PRs and main branch changes
|
||||
pull_request:
|
||||
push:
|
||||
|
@ -1,6 +1,6 @@
|
||||
# golangci-lint-action
|
||||
|
||||
[](https://github.com/golangci/golangci-lint-action/actions)
|
||||
[](https://github.com/golangci/golangci-lint-action/actions)
|
||||
|
||||

|
||||
|
||||
|
2
dist/matchers.json
vendored
2
dist/matchers.json
vendored
@ -1,7 +1,7 @@
|
||||
{
|
||||
"problemMatcher": [
|
||||
{
|
||||
"owner": "golangci-lint-action",
|
||||
"owner": "go",
|
||||
"pattern": [
|
||||
{
|
||||
"regexp": "^\\s*(\\.{0,2}[\\/\\\\].+\\.go):(?:(\\d+):(\\d+):)? (.*)",
|
||||
|
2
dist/post_run/index.js
vendored
2
dist/post_run/index.js
vendored
@ -5721,7 +5721,7 @@ function runLint(lintPath) {
|
||||
if (args.includes(`-out-format`)) {
|
||||
throw new Error(`please, don't change out-format for golangci-lint: it can be broken in a future`);
|
||||
}
|
||||
const cmd = `${lintPath} run ${args}`.trimRight();
|
||||
const cmd = `${lintPath} run --out-format=github-actions ${args}`.trimRight();
|
||||
core.info(`Running [${cmd}] ...`);
|
||||
const startedAt = Date.now();
|
||||
try {
|
||||
|
2
dist/run/index.js
vendored
2
dist/run/index.js
vendored
@ -5733,7 +5733,7 @@ function runLint(lintPath) {
|
||||
if (args.includes(`-out-format`)) {
|
||||
throw new Error(`please, don't change out-format for golangci-lint: it can be broken in a future`);
|
||||
}
|
||||
const cmd = `${lintPath} run ${args}`.trimRight();
|
||||
const cmd = `${lintPath} run --out-format=github-actions ${args}`.trimRight();
|
||||
core.info(`Running [${cmd}] ...`);
|
||||
const startedAt = Date.now();
|
||||
try {
|
||||
|
@ -4,11 +4,18 @@ package sample
|
||||
import (
|
||||
"crypto/md5"
|
||||
"encoding/hex"
|
||||
"errors"
|
||||
)
|
||||
|
||||
// Hash~
|
||||
func Hash(data string) string {
|
||||
retError()
|
||||
|
||||
h := md5.New()
|
||||
h.Write([]byte(data))
|
||||
return hex.EncodeToString(h.Sum(nil))
|
||||
}
|
||||
|
||||
func retError() error {
|
||||
return errors.New("err")
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ async function runLint(lintPath: string): Promise<void> {
|
||||
throw new Error(`please, don't change out-format for golangci-lint: it can be broken in a future`)
|
||||
}
|
||||
|
||||
const cmd = `${lintPath} run ${args}`.trimRight()
|
||||
const cmd = `${lintPath} run --out-format=github-actions ${args}`.trimRight()
|
||||
core.info(`Running [${cmd}] ...`)
|
||||
const startedAt = Date.now()
|
||||
try {
|
||||
|
Reference in New Issue
Block a user