diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 4b383e9..26b7c7a 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -1,5 +1,29 @@ -steps: -- uses: actions/checkout@master -- uses: codecov/codecov-action@v2 - with: - token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos +name: Example workflow for Codecov +on: + push: + branches: + - master + paths: + - '**.go' + - 'go.*' + - '.github/**' + - 'codecov.yml' + pull_request: + branches: + - master + 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