name: Codecov workflow on: push: branches: - main paths: - '**.go' - 'go.*' - '.github/**' - 'codecov.yml' pull_request: branches: - main 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