Skip to content

Commit

Permalink
fix(ci): Move install script test to run after bootstrap workflow bui…
Browse files Browse the repository at this point in the history
…lds release.

Signed-off-by: spbsoluble <1661003+spbsoluble@users.noreply.github.com>
  • Loading branch information
spbsoluble committed Nov 19, 2024
1 parent e415a68 commit 0bbd7fc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 16 deletions.
24 changes: 23 additions & 1 deletion .github/workflows/keyfactor-bootstrap-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,26 @@ jobs:
APPROVE_README_PUSH: ${{ secrets.APPROVE_README_PUSH}}
gpg_key: ${{ secrets.KF_GPG_PRIVATE_KEY }}
gpg_pass: ${{ secrets.KF_GPG_PASSPHRASE }}
scan_token: ${{ secrets.SAST_TOKEN }}
scan_token: ${{ secrets.SAST_TOKEN }}

# Tester Install Script
Test_Install_Script:
runs-on: kfutil-runner-set
if: startsWith(github.ref, 'refs/tags/')
needs:
- get-versions
# - call-starter-workflow
steps:
- name: Test Quick Install Script
env:
VERSION: ${{ needs.get-versions.outputs.NEXT_VERSION }}
run: |
echo "Testing Install Script for version: $VERSION"
sudo apt update && sudo apt upgrade -y && sudo apt install -y curl wget unzip jq openssl && sudo apt clean
echo curl -s "https://raw.githubusercontent.com/Keyfactor/kfutil/${GITHUB_REF_NAME}/install.sh"
GITHUB_REF_NAME_ENCODED=$(echo -n "${GITHUB_REF_NAME}" | jq -sRr @uri)
VERIFY_CHECKSUM=0
bash <(curl -s "https://raw.githubusercontent.com/Keyfactor/kfutil/${GITHUB_REF_NAME_ENCODED}/install.sh")
which kfutil
kfutil version
rm $(which kfutil)
15 changes: 0 additions & 15 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -639,21 +639,6 @@ jobs:
run: |
go test -timeout 20m -v ./cmd -run "^Test_PAM*"
# Tester Install Script
Test_Install_Script:
runs-on: kfutil-runner-set
steps:
- name: Test Quick Install Script
run: |
sudo apt update && sudo apt upgrade -y && sudo apt install -y curl wget unzip jq openssl && sudo apt clean
echo curl -s "https://raw.githubusercontent.com/Keyfactor/kfutil/${GITHUB_REF_NAME}/install.sh"
GITHUB_REF_NAME_ENCODED=$(echo -n "${GITHUB_REF_NAME}" | jq -sRr @uri)
VERIFY_CHECKSUM=0
bash <(curl -s "https://raw.githubusercontent.com/Keyfactor/kfutil/${GITHUB_REF_NAME_ENCODED}/install.sh")
which kfutil
kfutil version
rm $(which kfutil)
# Package Tests
Test_Kfutil_pkg:
runs-on: kfutil-runner-set
Expand Down

0 comments on commit 0bbd7fc

Please sign in to comment.