validator v10 bump 10.14.1 10.15.3 #1064
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: coverage | |
on: | |
pull_request: | |
jobs: | |
coverage: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
go-version: ["1.21.x"] # the coverage measurement is enough in 1 version, no need for all | |
os: [ubuntu-latest] | |
steps: | |
- name: Install Go | |
if: success() | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Calc coverage | |
run: go test ./bo ./com -v -covermode=count -coverprofile=coverage.out | |
- name: Convert coverage to lcov | |
uses: jandelgado/[email protected] | |
- name: Enforce Min Coverage | |
uses: VeryGoodOpenSource/[email protected] | |
with: | |
path: "coverage.lcov" | |
min_coverage: 80 # the plan is to increase this with time |