Skip to content

Commit

Permalink
try to add buildvcs flag to environments
Browse files Browse the repository at this point in the history
  • Loading branch information
ArshiaDadras committed Sep 24, 2024
1 parent 3cc7f8f commit 17f7fe6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@ jobs:
image: golang:1.23
steps:
- uses: actions/checkout@v2
- name: Set GOFLAGS to disable VCS
run: echo "GOFLAGS=-buildvcs=false" >> $GITHUB_ENV
- name: Enable Go modules
run: echo "GO111MODULE=on" >> $GITHUB_ENV
- name: Download dependencies
run: go mod download
- name: Run tests
run: |
go test -race $(go list ./... | grep -v /vendor/) -v -coverprofile=coverage.out -buildvcs=false
go test -race $(go list ./... | grep -v /vendor/) -v -coverprofile=coverage.out
grep -v "mock.go" coverage.out > cover.out
- name: Generate coverage report
run: go tool cover -func=cover.out

0 comments on commit 17f7fe6

Please sign in to comment.