Skip to content

Commit

Permalink
Merge pull request #396 from marosset/fix-golangci-lint-actions
Browse files Browse the repository at this point in the history
Fixing run-lint github workflows
  • Loading branch information
k8s-ci-robot authored Sep 15, 2023
2 parents 621eed2 + 1b85199 commit 750dc9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/capz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ jobs:
name: lint go
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.20"
- uses: actions/checkout@v3
cache: false # workaround for golangci-lint caching issues https://github.com/golangci/golangci-lint-action/pull/704
# run mod download prior to running linter to avoid timeouts while running linter
- name: build go
run: |
Expand All @@ -44,7 +45,7 @@ jobs:
with:
version: latest
working-directory: capz/gmsa/configuration
args: --build-tags=e2e --timeout=5m
args: --build-tags=e2e --timeout=10m
build-gmsa-configuration:
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions capz/gmsa/configuration/configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ func fileOnHost(path string) (*os.File, error) {
if err := os.MkdirAll(filepath.Dir(path), os.ModePerm); err != nil {
return nil, err
}

return os.Create(path)
}

Expand Down

0 comments on commit 750dc9b

Please sign in to comment.