ci(golangci-lint): switch to latest (#870)
* ci(golangci-lint): switch to latest remove schema override since it was fixed in upstream Signed-off-by: hackercat <me@hackerc.at> * fix: apply lint fixes
This commit is contained in:
parent
11f6ee37a6
commit
cd24df5727
4 changed files with 5 additions and 8 deletions
2
.github/workflows/checks.yml
vendored
2
.github/workflows/checks.yml
vendored
|
@ -21,7 +21,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
with:
|
with:
|
||||||
version: v1.40.0
|
version: latest
|
||||||
- uses: github/super-linter@v3
|
- uses: github/super-linter@v3
|
||||||
env:
|
env:
|
||||||
DEFAULT_BRANCH: master
|
DEFAULT_BRANCH: master
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
# yaml-language-server: $schema=https://schemastore.pages.dev/schemas/json/golangci-lint.json
|
# Minimum golangci-lint version required: v1.42.0
|
||||||
# Your editor might complain about invalid types, but this is correct config
|
|
||||||
# above schema should prevent editor from "shouting" about this
|
|
||||||
# Minimum golangci-lint version required: v1.40.0
|
|
||||||
run:
|
run:
|
||||||
timeout: 3m
|
timeout: 3m
|
||||||
|
|
||||||
|
@ -32,7 +29,7 @@ linters:
|
||||||
enable:
|
enable:
|
||||||
- megacheck
|
- megacheck
|
||||||
- govet
|
- govet
|
||||||
- golint
|
- revive
|
||||||
- gocyclo
|
- gocyclo
|
||||||
- gosec
|
- gosec
|
||||||
- unconvert
|
- unconvert
|
||||||
|
|
|
@ -16,7 +16,7 @@ import (
|
||||||
"github.com/nektos/act/pkg/model"
|
"github.com/nektos/act/pkg/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
var baseImage string = "node:12-buster-slim"
|
var baseImage = "node:12-buster-slim"
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
if p := os.Getenv("ACT_TEST_IMAGE"); p != "" {
|
if p := os.Getenv("ACT_TEST_IMAGE"); p != "" {
|
||||||
|
|
|
@ -560,7 +560,7 @@ func (sc *StepContext) execAsDocker(ctx context.Context, action *model.Action, a
|
||||||
|
|
||||||
if !correctArchExists {
|
if !correctArchExists {
|
||||||
log.Debugf("image '%s' for architecture '%s' will be built from context '%s", image, rc.Config.ContainerArchitecture, contextDir)
|
log.Debugf("image '%s' for architecture '%s' will be built from context '%s", image, rc.Config.ContainerArchitecture, contextDir)
|
||||||
var actionContainer container.Container = nil
|
var actionContainer container.Container
|
||||||
if localAction {
|
if localAction {
|
||||||
actionContainer = sc.RunContext.JobContainer
|
actionContainer = sc.RunContext.JobContainer
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue