Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Merge pull request #24 from smlx/dependabot/go_modules/golang.org/x/o… #20

Merge pull request #24 from smlx/dependabot/go_modules/golang.org/x/o…

Merge pull request #24 from smlx/dependabot/go_modules/golang.org/x/o… #20

Workflow file for this run

name: Coverage
on:
push:
branches:
- main
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Configure git
run: |
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Set up go
uses: actions/setup-go@v4
with:
go-version: stable
- name: Calculate coverage
run: |
go test -v -covermode=count -coverprofile=coverage.out.raw -coverpkg=./... ./...
grep -v mock_ coverage.out.raw > coverage.out
- name: Convert coverage to lcov
uses: jandelgado/gcov2lcov-action@v1
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.github_token }}