Skip to content

Commit

Permalink
pkg iden added using vars
Browse files Browse the repository at this point in the history
Signed-off-by: nitin sanghi <[email protected]>
  • Loading branch information
sanghinitin committed Dec 2, 2024
1 parent f8ec8a6 commit a6efdb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/habitat-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
echo "--- running linux hab build"
hab pkg build .
chmod +x habitat/tests/test.sh
habitat/tests/test.sh
habitat/tests/test.sh "${{vars.PKG_IDENT}}"
- name: Install Habitat on Windows
if: ${{ matrix.os == 'windows-latest' }}
shell: pwsh
Expand All @@ -103,4 +103,4 @@ jobs:
hab origin key download --auth ${{ secrets.HAB_AUTH_TOKEN }} --secret ${{ env.HAB_ORIGIN }}
write-output "--- running windows hab build"
hab pkg build .
habitat/tests/test.ps1
habitat/tests/test.ps1 "${{vars.PKG_IDENT}}"
3 changes: 1 addition & 2 deletions habitat/tests/test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env bash

set -euo pipefail

Expand Down Expand Up @@ -26,4 +25,4 @@ actual_version=$(hab pkg exec "${pkg_ident}" chef-cli -- -v | sed -E 's/.*Versio
[[ "$package_version" = "$actual_version" ]] || error "chef-cli is not the expected version. Expected '$package_version', got '$actual_version'"

echo "--- :Running rake"
hab pkg exec "${pkg_ident}" rake unit
hab pkg exec "${pkg_ident}" rake unit

0 comments on commit a6efdb6

Please sign in to comment.