Skip to content

⬆ Run Coverage in Go 1.21 only #1053

⬆ Run Coverage in Go 1.21 only

⬆ Run Coverage in Go 1.21 only #1053

Workflow file for this run

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@v3
- 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