ci(deps): bump chainguard/git from 9857edb
to f06036e
#2462
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: go-test-race | |
on: | |
pull_request: | |
branches: [master] | |
jobs: | |
go-test-race: | |
name: unit-tests-race | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Get cache paths | |
id: go-cache-paths | |
run: | | |
echo "::set-output name=go-build::$(go env GOCACHE)" | |
echo "::set-output name=go-mod::$(go env GOMODCACHE)" | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.go-cache-paths.outputs.go-build }} | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.OS }}-build-${{ env.cache-name }} | |
${{ runner.OS }}-build- | |
${{ runner.OS }}- | |
- name: Get Modules | |
run: | | |
go mod vendor | |
- name: Test and Generate Report | |
run: | | |
go test -tags="parallelScans" -race -timeout 9999s -mod=vendor -v $(go list ./... | grep -v e2e) -count=1 -coverprofile=cover.out | tee unit-test.log | |
result_code=${PIPESTATUS[0]} | |
exit $result_code | |
- name: Archive test logs | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: unit-test-${{ runner.os }}-${{ github.event.pull_request.head.sha }}.log | |
path: unit-test.log |