Skip to content

Commit 23e785f

Browse files
committed
Add tests for when plugins are already installed
Signed-off-by: Jason Frey <fryguy9@gmail.com>
1 parent 786ade4 commit 23e785f

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,40 @@ jobs:
151151
ibmcloud plugin list | grep -q '^secrets-manager\b' &&
152152
ibmcloud plugin list | grep -q '^container-registry\b.\+1\.3\.\b'
153153
154+
test-plugins-already-installed:
155+
runs-on: ubuntu-latest
156+
steps:
157+
- uses: actions/checkout@v6
158+
- name: Set up ibmcloud CLI
159+
uses: ./
160+
with:
161+
plugins: container-service
162+
- name: Set up ibmcloud CLI (again)
163+
uses: ./
164+
with:
165+
plugins: container-service secrets-manager
166+
- name: Check plugins are installed
167+
run: |
168+
ibmcloud plugin list | grep -q '^container-service\b' &&
169+
ibmcloud plugin list | grep -q '^secrets-manager\b'
170+
171+
test-plugins-already-installed-with-older-versions:
172+
runs-on: ubuntu-latest
173+
steps:
174+
- uses: actions/checkout@v6
175+
- name: Set up ibmcloud CLI
176+
uses: ./
177+
with:
178+
plugins: container-service@0.4.102
179+
- name: Set up ibmcloud CLI (again)
180+
uses: ./
181+
with:
182+
plugins: container-service secrets-manager
183+
- name: Check plugins are installed
184+
run: |
185+
ibmcloud plugin list | grep -q '^container-service\b' &&
186+
ibmcloud plugin list | grep -q '^secrets-manager\b'
187+
154188
test-login:
155189
runs-on: ubuntu-latest
156190
steps:

0 commit comments

Comments
 (0)