Skip to content

Revert "Fix unpack job cache issue (#3204)" (#3211) #91

Revert "Fix unpack job cache issue (#3204)" (#3211)

Revert "Fix unpack job cache issue (#3204)" (#3211) #91

Workflow file for this run

name: unit
env:
K8S_VERSION: 1.19.2
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
merge_group:
issue_comment:
types: [created] # Triggers the workflow when a comment is created. see `if` section
jobs:
unit:
if: >-
github.event_name != 'issue_comment' || startsWith(github.event.comment.body, '/retest unit')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
- name: Envtest setup
run: |
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
setup-envtest use ${K8S_VERSION}
- name: Run unit tests
run: KUBEBUILDER_ASSETS=$(setup-envtest use -i -p path ${K8S_VERSION}) make unit