Skip to content

Commit 2322243

Browse files
fix(bff): add make and Go setup for BFF services in e2e workflow (opendatahub-io#6865)
The self-hosted Fedora runners don't have `make` or Go pre-installed, causing BFF startup to fail with "make: command not found". Add conditional setup steps before BFF startup that install make and configure Go 1.24 only when BFF packages are detected. Co-authored-by: Anthony Coughlin <33689325+antowaddle@users.noreply.github.com>
1 parent 6a0fbf3 commit 2322243

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/cypress-e2e-test.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,6 +1110,23 @@ jobs:
11101110
grep -v "Using project:" || true
11111111
fi
11121112
1113+
- name: Install make for BFF builds
1114+
if: needs.get-test-tags.outputs.bff_packages != '[]'
1115+
run: |
1116+
if ! command -v make &> /dev/null; then
1117+
echo "📦 Installing make..."
1118+
sudo dnf install -y make 2>/dev/null || sudo yum install -y make 2>/dev/null || sudo apt-get install -y make 2>/dev/null
1119+
else
1120+
echo "✅ make already available: $(make --version | head -1)"
1121+
fi
1122+
1123+
- name: Setup Go for BFF builds
1124+
if: needs.get-test-tags.outputs.bff_packages != '[]'
1125+
uses: actions/setup-go@v5
1126+
with:
1127+
go-version: '1.24'
1128+
cache: false
1129+
11131130
- name: Start BFF Services
11141131
if: needs.get-test-tags.outputs.bff_packages != '[]'
11151132
env:

0 commit comments

Comments
 (0)