fix: merge main into PR branch, resolve CI and go.mod conflicts
- Keep go-version-file: 'go.mod' from PR (reads Go version from go.mod) - Keep gitea.hansenits.com.au module path in coverage check - Pick up .gitignore bin/* entry from main - go.mod: keep go 1.24.0 directive from main (GOTOOLCHAIN=local) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -18,21 +18,21 @@ jobs:
|
|||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
- name: Vet
|
- name: Vet
|
||||||
run: go vet ./...
|
run: GOTOOLCHAIN=local go vet ./...
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: go test -v -race -coverprofile=coverage.out ./...
|
run: GOTOOLCHAIN=local go test -v -race -coverprofile=coverage.out ./...
|
||||||
|
|
||||||
- name: Coverage report
|
- name: Coverage report
|
||||||
run: go tool cover -func=coverage.out
|
run: GOTOOLCHAIN=local go tool cover -func=coverage.out
|
||||||
|
|
||||||
- name: Check internal package coverage
|
- name: Check internal package coverage
|
||||||
run: |
|
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}%"
|
echo "Average internal package coverage: ${COVERAGE}%"
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: go build -v ./...
|
run: GOTOOLCHAIN=local go build -v ./...
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
*.dll
|
*.dll
|
||||||
*.so
|
*.so
|
||||||
*.dylib
|
*.dylib
|
||||||
|
bin/*
|
||||||
|
|
||||||
# Test binary, built with `go test -c`
|
# Test binary, built with `go test -c`
|
||||||
*.test
|
*.test
|
||||||
|
|||||||
Reference in New Issue
Block a user