Skip to content

Commit

Permalink
fix and simplify external plugin tests
Browse files Browse the repository at this point in the history
  • Loading branch information
camilamacedo86 committed Oct 29, 2024
1 parent 8786c7e commit e4fbfe4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/external-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
steps:
- name: Clone the code
uses: actions/checkout@v4
with:
# Fetching only recent history to avoid .git permission issues
fetch-depth: 1

- name: Setup Go
uses: actions/setup-go@v5
Expand Down Expand Up @@ -47,9 +50,10 @@ jobs:
- name: Build Kubebuilder Binary
run: |
make build
# Add the bin directory directly to the PATH
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
# Set kb_root_dir to avoid .git permissions issues
export kb_root_dir=$(pwd)
go build -o "${kb_root_dir}/bin/kubebuilder" ./cmd
echo "${kb_root_dir}/bin" >> $GITHUB_PATH
- name: Run Kubebuilder Commands
env:
Expand Down

0 comments on commit e4fbfe4

Please sign in to comment.