Skip to content

Commit

Permalink
modify ci.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
linglingye001 committed Jan 5, 2024
1 parent 4fc65e9 commit ed68de2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
runs-on: ubuntu-latest
env:
outputDirectory: ${{ github.workspace }}/out
envtest: ${{ github.workspace }}/setup-envtest

steps:
- uses: actions/checkout@v3
Expand All @@ -24,6 +23,7 @@ jobs:
- name: Run Test
run: |
echo 'Install evntest tool'
GOBIN=${{ env.outputDirectory }} go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
GOBIN=${{ github.workspace }} go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
echo 'Run tests'
KUBEBUILDER_ASSETS=$(${{ env.envtest }} use 1.19 -p path) CGO_ENABLED=0 go test ./... -coverprofile cover.out
echo $ENVTEST
KUBEBUILDER_ASSETS=$($ENVTEST use 1.19 -p path) CGO_ENABLED=0 go test ./... -coverprofile cover.out

0 comments on commit ed68de2

Please sign in to comment.