Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing run-lint github workflows #396

Merged
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
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