Skip to content

Fixed VersionDigests marshaling and a few lints #96

Fixed VersionDigests marshaling and a few lints

Fixed VersionDigests marshaling and a few lints #96

Workflow file for this run

name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: Download modules
if: steps.cache.outputs.cache-hit != 'true'
run: go mod download
- name: Run tests
run: go test -race -coverprofile coverage.out ./...
- name: Check code coverage
run: | # TODO: Raise coverage minimum
go tool cover -func coverage.out | grep total | \
awk '{ if (45 <= substr($3, 1, length($3)-1)) { \
print("Coverage: " $3, "OK"); \
} else { \
print("Coverage: " $3, "FAIL"); \
exit(1) \
}}'