ee8590100a
Bumps [jandelgado/gcov2lcov-action](https://github.com/jandelgado/gcov2lcov-action) from 1.0.9 to 1.1.1.
- [Release notes](https://github.com/jandelgado/gcov2lcov-action/releases)
- [Changelog](https://github.com/jandelgado/gcov2lcov-action/blob/master/CHANGELOG.md)
- [Commits](c680c0f7c7...4e19897678
)
---
updated-dependencies:
- dependency-name: jandelgado/gcov2lcov-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
30 lines
946 B
YAML
30 lines
946 B
YAML
name: Units tests
|
|
on: [push, pull_request]
|
|
jobs:
|
|
checks:
|
|
name: test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4.1.7
|
|
- name: Setup go
|
|
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
|
|
with:
|
|
go-version: 1.19
|
|
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
|
|
with:
|
|
path: |
|
|
~/go/pkg/mod
|
|
~/.cache/go-build
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-go-
|
|
- name: Run tests
|
|
run: go test -v -covermode=count -coverprofile=coverage.out
|
|
- name: Convert coverage to lcov
|
|
uses: jandelgado/gcov2lcov-action@4e1989767862652e6ca8d3e2e61aabe6d43be28b
|
|
- name: Coveralls
|
|
uses: coverallsapp/github-action@643bc377ffa44ace6394b2b5d0d3950076de9f63
|
|
with:
|
|
github-token: ${{ secrets.github_token }}
|
|
path-to-lcov: coverage.lcov
|