Skip to content

Minor simplification #387

Minor simplification

Minor simplification #387

Workflow file for this run

on:
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
name: tests
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: stable
- name: Checkout code
uses: actions/checkout@v3
- name: Calc coverage
run: >
go test
-coverpkg ../pkg/...
-covermode=count
-coverprofile=coverage.out
working-directory: go/test
- name: Convert coverage to lcov
uses: jandelgado/gcov2lcov-action@v1.0.9
with:
working-directory: go/test
- name: Coveralls
uses: coverallsapp/github-action@v2.2.3
with:
github-token: ${{ secrets.github_token }}
file: go/test/coverage.lcov