Skip to content

Use tests.Context(t) instead of context.Background() #1378

Use tests.Context(t) instead of context.Background()

Use tests.Context(t) instead of context.Background() #1378

Workflow file for this run

name: PKG Build and Test
on: [push ]
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
- name: Build
run: go build -v ./...
- name: Unit Tests
run: go test -race ./... -coverpkg=./... -coverprofile=pkg_coverage.out
- name: Upload Go test results
if: always()
uses: actions/upload-artifact@v3
with:
name: go-test-results
path: ./pkg_coverage.out