Skip to content

Commit

Permalink
ci: fix install test
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Howard <[email protected]>
  • Loading branch information
jhoward-lm committed Nov 14, 2024
1 parent eb05bef commit bf6d5f2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,17 @@ jobs:
test-install:
name: Install bomctl and test presence in path
runs-on: ${{ matrix.os }}

env:
BOMCTL_BIN: bomctl${{ runner.os == 'Windows' && '.exe' || '' }}

strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest

steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -53,7 +58,7 @@ jobs:
uses: ./

- name: Verify install
run: test -x ${{ steps.install.outputs.bomctl-binary }} && bomctl version

- name: Verify install found in PATH
run: ([[ $(command -v bomctl) == ${{ steps.install.outputs.bomctl-binary }} ]] && true) || false
run: |
[[ -x ${{ steps.install.outputs.bomctl-binary }} ]] || false
[[ $(command -v bomctl) == ${{ steps.install.outputs.bomctl-binary }} ]] || false
${BOMCTL_BIN} version

0 comments on commit bf6d5f2

Please sign in to comment.