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

Adjust staticcheck CI settings to lower memory use #181

Merged
merged 1 commit into from
May 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 6 additions & 9 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
- name: Install go
uses: actions/setup-go@v2
with:
go-version: '1.17'
go-version: '1.18'
- name: Install protobuf
uses: arduino/setup-protoc@v1
with:
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Install go
uses: actions/setup-go@v2
with:
go-version: '1.17'
go-version: '1.18'
- name: Checkout code
uses: actions/checkout@v2
- name: Cache
Expand All @@ -55,6 +55,7 @@ jobs:
path: |
~/go/pkg/mod
~/.cache/go-build
~/.cache/staticcheck
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
- name: Fetch Openconfig Models
run: make openconfig_public
Expand All @@ -67,7 +68,7 @@ jobs:
- name: Install go
uses: actions/setup-go@v2
with:
go-version: '1.17'
go-version: '1.18'
- name: Checkout code
uses: actions/checkout@v2
- name: Cache
Expand All @@ -76,6 +77,7 @@ jobs:
path: |
~/go/pkg/mod
~/.cache/go-build
~/.cache/staticcheck
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
- name: Go vet
run: go vet ./...
Expand All @@ -88,9 +90,4 @@ jobs:
- name: Get staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Run staticcheck
run: |
checkstr=""
for i in `go list ./... | grep -v github.com/openconfig/featureprofiles/yang`; do
checkstr="$checkstr $i"
done
staticcheck $checkstr
run: GOGC=30 staticcheck ./...