Skip to content

Merge pull request #11 from fonini/dependabot/go_modules/github.com/g… #52

Merge pull request #11 from fonini/dependabot/go_modules/github.com/g…

Merge pull request #11 from fonini/dependabot/go_modules/github.com/g… #52

Workflow file for this run

on: [push, pull_request]
name: tests
jobs:
test:
strategy:
matrix:
go-version: [1.x, 1.14.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v2
- name: Cache go modules
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
restore-keys: ${{ runner.os }}-go-
- name: Run go test
run: go test -v -race -coverprofile coverage.txt -covermode atomic ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}