Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,40 @@ jobs:
ibmcloud plugin list | grep -q '^secrets-manager\b' &&
ibmcloud plugin list | grep -q '^container-registry\b.\+1\.3\.\b'

test-plugins-already-installed:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up ibmcloud CLI
uses: ./
with:
plugins: container-service
- name: Set up ibmcloud CLI (again)
uses: ./
with:
plugins: container-service secrets-manager
- name: Check plugins are installed
run: |
ibmcloud plugin list | grep -q '^container-service\b' &&
ibmcloud plugin list | grep -q '^secrets-manager\b'

test-plugins-already-installed-with-older-versions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up ibmcloud CLI
uses: ./
with:
plugins: container-service@0.4.102
- name: Set up ibmcloud CLI (again)
uses: ./
with:
plugins: container-service secrets-manager
- name: Check plugins are installed
run: |
ibmcloud plugin list | grep -q '^container-service\b' &&
ibmcloud plugin list | grep -q '^secrets-manager\b'

test-login:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ async function installPlugins() {
const plugins = core.getInput('plugins').replace(/\n/g, ' ').replace(/,/g, ' ').split(' ').map(p => p.trim()).filter(p => p)
if (plugins.length > 0) {
core.startGroup('Installing IBM Cloud CLI plugins')
await exec.exec('ibmcloud', ['plugin', 'install', ...plugins])
await exec.exec('ibmcloud', ['plugin', 'install', ...plugins, '-f'])
core.endGroup()
await exec.exec('ibmcloud', ['plugin', 'list'])
}
Expand Down
Loading