This repository was archived by the owner on Nov 17, 2025. It is now read-only.
Bump k8s.io/client-go from 0.23.4 to 0.34.2 #650
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run CodeCov | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| env: | |
| # Path to where test results will be saved. | |
| TEST_RESULTS: /tmp/test-results | |
| # Default minimum version of Go to support. | |
| DEFAULT_GO_VERSION: 1.17 | |
| jobs: | |
| test-coverage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install Go | |
| uses: actions/[email protected] | |
| with: | |
| go-version: ${{ env.DEFAULT_GO_VERSION }} | |
| - name: Checkout Repo | |
| uses: actions/checkout@v2 | |
| - name: Setup Environment | |
| run: | | |
| echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV | |
| echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | |
| - name: Module cache | |
| uses: actions/[email protected] | |
| env: | |
| cache-name: go-mod-cache | |
| with: | |
| path: ~/go/pkg/mod | |
| key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/go.sum') }} | |
| - name: Run coverage tests | |
| run: | | |
| make test-coverage | |
| mkdir $TEST_RESULTS | |
| cp coverage.out $TEST_RESULTS | |
| cp coverage.txt $TEST_RESULTS | |
| cp coverage.html $TEST_RESULTS | |
| - name: Upload coverage report | |
| uses: codecov/codecov-action@v1 | |
| with: | |
| file: ./coverage.txt | |
| fail_ci_if_error: false | |
| verbose: true | |
| - name: Store coverage test output | |
| uses: actions/upload-artifact@v2 | |
| with: | |
| name: opentelemetry-log-collection-test-output | |
| path: ${{ env.TEST_RESULTS }} |