08a9ec380c
Bumps [actions/cache](https://github.com/actions/cache) from 2.1.7 to 3.0.8.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](937d244753...fd5de65bc8
)
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
30 lines
980 B
YAML
30 lines
980 B
YAML
name: Units tests
|
|
on: [push, pull_request]
|
|
jobs:
|
|
checks:
|
|
name: test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@61b9e3751b92087fd0b06925ba6dd6314e06f089
|
|
- name: Setup go
|
|
uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492
|
|
with:
|
|
go-version: 1.19
|
|
- uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77
|
|
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@2477d9ec11814a9326e7fdde8d315783d163edb7
|
|
- name: Coveralls
|
|
uses: coverallsapp/github-action@8cbef1dea373ebce56de0a14c68d6267baa10b44
|
|
with:
|
|
github-token: ${{ secrets.github_token }}
|
|
path-to-lcov: coverage.lcov
|