github.com/goravel/framework@v1.13.9/.github/workflows/codecov.yml (about) 1 name: Codecov 2 on: 3 push: 4 branches: 5 - master 6 pull_request: 7 jobs: 8 codecov: 9 runs-on: ubuntu-latest 10 steps: 11 - uses: actions/checkout@v4 12 - uses: actions/setup-go@v4 13 with: 14 go-version: 'stable' 15 - name: Install dependencies 16 run: go mod tidy 17 - name: Run tests with coverage 18 run: go test -v -coverprofile="coverage.out" ./... 19 - name: Upload coverage report to Codecov 20 uses: codecov/codecov-action@v3 21 with: 22 file: ./coverage.out 23 token: ${{ secrets.CODECOV }}