-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
run: go install honnef.co/go/tools/cmd/[email protected] | ||
|
||
- name: golangci-lint | ||
run: golangci-lint run --timeout=30m --max-same-issues=0 --out-format=github-actions | ||
run: golangci-lint run --timeout=30m --max-same-issues=0 --out-format=github-actions --new | ||
|
||
# Add legacy checks since golangci-lint only tests changed files for now | ||
- name: StaticCheck | ||
|
@@ -43,7 +43,7 @@ jobs: | |
run: go test -cover `go list ./... | grep -v 'pkg/client'` | ||
|
||
test-swagger: | ||
name: Test | ||
name: Test Swagger | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -53,7 +53,11 @@ jobs: | |
- name: Install dependencies | ||
run: go mod download | ||
- name: Install Swagger | ||
run: go get -u github.com/go-swagger/go-swagger/cmd/swagger | ||
run: | | ||
download_url=$(curl -s https://api.github.com/repos/go-swagger/go-swagger/releases/latest | \ | ||
jq -r '.assets[] | select(.name | contains("'"$(uname | tr '[:upper:]' '[:lower:]')"'_amd64")) | .browser_download_url') | ||
curl -o /usr/local/bin/swagger -L'#' "$download_url" | ||
chmod +x /usr/local/bin/swagger | ||
- name: Run Tests | ||
run: make swagger | ||
- name: Validate no changes | ||
|