diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 209d618..b7a1670 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -5,19 +5,6 @@ on: - master pull_request: jobs: - codecov: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 - with: - go-version: 'stable' - - name: Install dependencies - run: go mod tidy - - name: Run tests with coverage - run: go test -timeout 1h -coverprofile="coverage.out" ./... - - name: Upload coverage report to Codecov - uses: codecov/codecov-action@v4 - with: - file: ./coverage.out - token: ${{ secrets.CODECOV }} + test: + uses: goravel/.github/.github/workflows/codecov.yml@master + secrets: inherit