Commit 5505cd68
5505cd681d5dMerged
Svyatoslav <[email protected]> ยท 5 years ago ยท 1 file ยท +1 added
Description
Add workflow for unit tests
Details
- Commit
- 5505cd681d5d
- Parent
- 319cc1da1571
.github/workflows/unit_tests.ymladdedView file
1+
name: Run unit tests2+
3+
on: pull_request4+
5+
jobs:6+
unit-tests:7+
runs-on: ubuntu-latest8+
steps:9+
- uses: actions/checkout@v210+
- uses: actions/setup-go@v211+
with:12+
go-version: 1.1613+
14+
- uses: actions/cache@v215+
with:16+
path: ~/go/pkg/mod17+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}18+
restore-keys: |19+
${{ runner.os }}-go-20+
21+
- name: Install go modules22+
run: go mod download23+
24+
- name: Run unit tests25+
run: go test -race -coverpkg=./... -coverprofile=./unit.cov -v --tags=unit -covermode=atomic ./...26+
27+
- uses: codecov/codecov-action@v128+
with:29+
files: ./unit.cov30+
flags: unit