Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Bump codecov/codecov-action from 2.1.0 to 3.1.2 #67

Bump codecov/codecov-action from 2.1.0 to 3.1.2

Bump codecov/codecov-action from 2.1.0 to 3.1.2 #67

Workflow file for this run

name: Go
on: [ push, pull_request ]
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.1.0
with:
version: latest
test:
strategy:
matrix:
go_version:
- '1.13'
- '1.14'
- '1.15'
- '1.16'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Set up Go ${{ matrix.go_version }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go_version }}
- name: Build
run: go build -v ./...
- name: Test with coverage
run: go test -race -v -count=1 -coverprofile=coverage.out ./...
- name: Upload Test Coverage
uses: codecov/codecov-action@v3.1.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: ${{ matrix.go_version }}