Skip to content

Merge pull request #2 from cdzombak/dependabot/go_modules/golang.org/… #1

Merge pull request #2 from cdzombak/dependabot/go_modules/golang.org/…

Merge pull request #2 from cdzombak/dependabot/go_modules/golang.org/… #1

Workflow file for this run

name: CI
on: [ push, pull_request ]
jobs:
lint:
name: Run linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v2
test:
name: Run unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v1
with:
go-version: 1.17
- name: Run tests with coverage
run: go mod tidy && go test -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash) # -t ${{ secrets.CODECOV_TOKEN }}