Skip to content

chore(deps): update coverallsapp/github-action action to v2 - autoclosed #164

chore(deps): update coverallsapp/github-action action to v2 - autoclosed

chore(deps): update coverallsapp/github-action action to v2 - autoclosed #164

Workflow file for this run

on: [push, pull_request]
name: test and build
env:
GO_VERSION: "1.16"
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Checkout code
uses: actions/checkout@v3
- name: Calc coverage
run: |
export PATH=$PATH:$(go env GOPATH)/bin
go test -v -covermode=count -coverprofile=coverage.out -run ^Test_
- name: Convert coverage to lcov
uses: jandelgado/gcov2lcov-action@v1.0.8
with:
infile: coverage.out
outfile: coverage.lcov
- name: Coveralls
uses: coverallsapp/github-action@v2.2.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.lcov