Skip to content

Commit

Permalink
Adjust staticcheck CI settings to lower memory use (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
bstoll committed May 5, 2022
1 parent ec22fe3 commit 1ed4fb3
Showing 1 changed file with 6 additions and 9 deletions.
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 ./...

0 comments on commit 1ed4fb3

Please sign in to comment.