2022-03-15 21:29:26 +01:00
|
|
|
name: Example workflow for Codecov
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2022-03-15 21:30:51 +01:00
|
|
|
- main
|
2022-03-15 21:29:26 +01:00
|
|
|
paths:
|
|
|
|
- '**.go'
|
|
|
|
- 'go.*'
|
|
|
|
- '.github/**'
|
|
|
|
- 'codecov.yml'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
2022-03-15 21:30:51 +01:00
|
|
|
- main
|
2022-03-15 21:29:26 +01:00
|
|
|
paths:
|
|
|
|
- '**.go'
|
|
|
|
- 'go.*'
|
|
|
|
- '.github/**'
|
|
|
|
- 'codecov.yml'
|
|
|
|
jobs:
|
|
|
|
run:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
- uses: codecov/codecov-action@v2
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
|