build(deps): Bump golang.org/x/net from 0.0.0-20220412020605-290c469a71a5 to 0.26.0 #735
Workflow file for this run
This file contains 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: Test | |
on: | |
pull_request: | |
push: | |
paths: | |
- "**.go" | |
branches: | |
- master | |
- release/** | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
part: ["00", "01", "02", "03", "04", "05"] | |
steps: | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: "1.17" | |
- uses: actions/checkout@v3 | |
- uses: technote-space/get-diff-action@v6 | |
with: | |
PATTERNS: | | |
**/**.go | |
"!test/" | |
go.mod | |
go.sum | |
Makefile | |
- name: Run Go Tests | |
run: | | |
make test-group-${{ matrix.part }} NUM_SPLIT=6 | |
if: env.GIT_DIFF | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: "${{ github.sha }}-${{ matrix.part }}-coverage" | |
path: ./build/${{ matrix.part }}.profile.out | |
upload-coverage-report: | |
runs-on: ubuntu-latest | |
needs: tests | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: technote-space/get-diff-action@v6 | |
with: | |
PATTERNS: | | |
**/**.go | |
"!test/" | |
go.mod | |
go.sum | |
Makefile | |
- uses: actions/download-artifact@v3 | |
with: | |
name: "${{ github.sha }}-00-coverage" | |
if: env.GIT_DIFF | |
- uses: actions/download-artifact@v3 | |
with: | |
name: "${{ github.sha }}-01-coverage" | |
if: env.GIT_DIFF | |
- uses: actions/download-artifact@v3 | |
with: | |
name: "${{ github.sha }}-02-coverage" | |
if: env.GIT_DIFF | |
- uses: actions/download-artifact@v3 | |
with: | |
name: "${{ github.sha }}-03-coverage" | |
if: env.GIT_DIFF | |
- run: | | |
cat ./*profile.out | grep -v "mode: set" >> coverage.txt | |
if: env.GIT_DIFF | |
- uses: codecov/[email protected] | |
with: | |
file: ./coverage.txt | |
if: env.GIT_DIFF |