Merge remote-tracking branch 'origin/main'

This commit is contained in:
Winni Neessen 2022-03-15 21:48:43 +01:00
commit 50ea497569
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D

View file

@ -1,8 +1,8 @@
name: Example workflow for Codecov name: Codecov workflow
on: on:
push: push:
branches: branches:
- master - main
paths: paths:
- '**.go' - '**.go'
- 'go.*' - 'go.*'
@ -10,7 +10,7 @@ on:
- 'codecov.yml' - 'codecov.yml'
pull_request: pull_request:
branches: branches:
- master - main
paths: paths:
- '**.go' - '**.go'
- 'go.*' - 'go.*'
@ -22,8 +22,17 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, macos-latest, windows-latest] os: [ubuntu-latest, macos-latest, windows-latest]
go: [1.14, 1.15, 1.16, 1.17]
steps: steps:
- uses: actions/checkout@master - name: Checkout Code
- uses: codecov/codecov-action@v2 uses: actions/checkout@master
- name: Run Tests
run: |
go test -race --coverprofile=coverage.coverprofile --covermode=atomic ./...
- name: Upload coverage to Codecov
if: success() && matrix.go == 1.17 && matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v2
with: with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos