Compare commits
5
Commits
671a23e6e1
...
fe74ec61a2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fe74ec61a2 | ||
|
|
851203e8f6 | ||
|
|
cf280a9f2b | ||
|
|
1f23f482c1 | ||
|
|
17e2c47e4a |
@@ -18,21 +18,21 @@ jobs:
|
||||
cache: true
|
||||
|
||||
- name: Vet
|
||||
run: go vet ./...
|
||||
run: GOTOOLCHAIN=local go vet ./...
|
||||
|
||||
- name: Test
|
||||
run: go test -v -race -coverprofile=coverage.out ./...
|
||||
run: GOTOOLCHAIN=local go test -v -race -coverprofile=coverage.out ./...
|
||||
|
||||
- name: Coverage report
|
||||
run: go tool cover -func=coverage.out
|
||||
run: GOTOOLCHAIN=local go tool cover -func=coverage.out
|
||||
|
||||
- name: Check internal package coverage
|
||||
run: |
|
||||
COVERAGE=$(go tool cover -func=coverage.out | grep "^gitea.hansenits.com.au/hits/ExploreDNS/internal" | awk '{print $3}' | sed 's/%//' | awk '{sum+=$1; count++} END {if(count>0) print sum/count; else print 0}')
|
||||
COVERAGE=$(GOTOOLCHAIN=local go tool cover -func=coverage.out | grep "^gitea.hansenits.com.au/hits/ExploreDNS/internal" | awk '{print $3}' | sed 's/%//' | awk '{sum+=$1; count++} END {if(count>0) print sum/count; else print 0}')
|
||||
echo "Average internal package coverage: ${COVERAGE}%"
|
||||
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
run: GOTOOLCHAIN=local go build -v ./...
|
||||
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
*.dll
|
||||
*.so
|
||||
*.dylib
|
||||
bin/*
|
||||
|
||||
# Test binary, built with `go test -c`
|
||||
*.test
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user