Skip to content

PreStop lifecycle hook feature #759

PreStop lifecycle hook feature

PreStop lifecycle hook feature #759

Workflow file for this run

name: Unit Tests
on:
push:
branches:
- master
pull_request:
jobs:
buildx:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
steps:
- id: go-cache-paths
run: |
echo "go-build=$(go env GOCACHE)" >> $GITHUB_OUTPUT
echo "go-mod=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT
shell: bash
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20.2
- name: Go Build Cache
uses: actions/cache@v3
with:
path: ${{ steps.go-cache-paths.outputs.go-build }}
key: ${{ runner.os }}-cache-${{ hashFiles('**/go.sum') }}
- name: Run tests
run: |
go test -v ./cmd/... ./pkg/...