Skip to content

Bump actions/checkout from 3 to 4 (#96) #357

Bump actions/checkout from 3 to 4 (#96)

Bump actions/checkout from 3 to 4 (#96) #357

Workflow file for this run

name: coverage
on:
push:
pull_request:
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v4
with:
go-version: 1.20.x
- name: Checkout Code
uses: actions/checkout@v4
- name: Calc coverage
run: go test ./... -v -covermode=count -coverprofile=coverage.out -p 1
- name: Convert coverage to lcov
uses: jandelgado/gcov2lcov-action@v1.0.9
- name: Enforce Min Coverage
uses: VeryGoodOpenSource/very_good_coverage@v2.1.0
with:
path: "coverage.lcov"
min_coverage: 70 # the plan is to increase this with time