Skip to content

Commit 18d3126

Browse files
committed
Upgrade and verify OLM for tests, remove superfluous yq install
Signed-off-by: Michael Edgar <medgar@redhat.com>
1 parent 4a59ac3 commit 18d3126

3 files changed

Lines changed: 22 additions & 11 deletions

File tree

.github/actions/setup-minikube/action.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,18 @@ inputs:
1313
required: false
1414
default: "2"
1515
description: "Minikube CPU allocation"
16+
OLM_VERSION:
17+
required: false
18+
default: "v0.42.0"
19+
description: "Version of OLM to install"
20+
OLM_SCRIPT_SHA256:
21+
required: false
22+
default: "1e8065cb503d2ee94ce82dd2591618022852f53a43df908b9f8c7d314cff3532"
23+
description: "OLM installation script SHA256 hash"
1624

1725
runs:
1826
using: "composite"
1927
steps:
20-
- name: Install yq for deployment scripts
21-
shell: bash
22-
run: |
23-
curl -L https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 > yq && chmod +x yq
24-
sudo cp -v yq /usr/bin/
25-
2628
- name: Start Minikube
2729
id: minikube
2830
uses: medyagh/setup-minikube@latest
@@ -63,5 +65,18 @@ runs:
6365
6466
- name: Setup OLM
6567
shell: bash
68+
env:
69+
OLM_VERSION: "${{ inputs.OLM_VERSION }}"
70+
OLM_SCRIPT_SHA256: "${{ inputs.OLM_SCRIPT_SHA256 }}"
6671
run: |
67-
curl -sL https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.28.0/install.sh | bash -s v0.28.0
72+
curl \
73+
--proto "=https" \
74+
--tlsv1.3 \
75+
-o install.sh \
76+
-sL \
77+
https://github.com/operator-framework/operator-lifecycle-manager/releases/download/${OLM_VERSION}/install.sh
78+
79+
echo "${OLM_SCRIPT_SHA256} ./install.sh" | sha256sum --check --status || { echo "Hash verification failed"; exit 1; }
80+
chmod +x ./install.sh
81+
82+
./install.sh ${OLM_VERSION}

.github/workflows/playwright-tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on:
66
env:
77
TARGET_NAMESPACE: "console-namespace"
88
CI_CLUSTER: true
9-
OLM_VERSION: "v0.28.0"
10-
YQ_VERSION: "v4.44.1"
119

1210
jobs:
1311
Test:

.github/workflows/systemtests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ jobs:
8282
ENVS: ${{ github.event.inputs.envs }}
8383
CO_NAMESPACE: "co-namespace"
8484
OLM_MINIKUBE_NAMESPACE: "olm"
85-
OLM_VERSION: "v0.28.0"
86-
YQ_VERSION: "v4.44.1"
8785
steps:
8886
- name: Checkout
8987
uses: actions/checkout@v6

0 commit comments

Comments
 (0)