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
13 changes: 7 additions & 6 deletions .github/workflows/action-test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ jobs:
os: [macos-12, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Run STK CLI installation
uses: stack-spot/stk-cli-action@main
- name: Checkout code
uses: actions/checkout@v4

- name: Test changes
uses: ./
with:
client_id: ${{ secrets.CLIENT_ID }}
client_key: ${{ secrets.CLIENT_KEY }}
realm: ${{ secrets.REALM }}

- run: stk --version

# - name: Setup upterm session
# uses: lhotari/action-upterm@v1
- name: Show STK CLI version
run: stk --version
13 changes: 7 additions & 6 deletions .github/workflows/action-test-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ jobs:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Run STK CLI installation
uses: stack-spot/stk-cli-action@main
- name: Checkout code
uses: actions/checkout@v4

- name: Test changes
uses: ./
with:
client_id: ${{ secrets.CLIENT_ID }}
client_key: ${{ secrets.CLIENT_KEY }}
realm: ${{ secrets.REALM }}

- run: stk --version

# - name: Setup upterm session
# uses: lhotari/action-upterm@v1
- name: Show STK CLI version
run: stk --version
12 changes: 7 additions & 5 deletions .github/workflows/action-test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ jobs:
os: [windows-2019, windows-2022, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Run STK CLI installation
uses: stack-spot/stk-cli-action@main
- name: Checkout code
uses: actions/checkout@v4

- name: Test changes
uses: ./
with:
client_id: ${{ secrets.CLIENT_ID }}
client_key: ${{ secrets.CLIENT_KEY }}
realm: ${{ secrets.REALM }}

- run: stk --version
shell: bash

- name: Show STK CLI version
run: stk --version
16 changes: 0 additions & 16 deletions .github/workflows/sast

This file was deleted.

28 changes: 25 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,31 @@ runs:
- name: Install STK CLI
run: |
if [[ "$(uname)" = "Linux" ]]; then
# Install jq, curl, zip, and git
sudo apt-get update
sudo apt-get install -y jq curl zip git
PACKAGES_TO_INSTALL=""
if [ "$(which curl)" = "" ]
then
PACKAGES_TO_INSTALL="curl "
fi
if [ "$(which git)" = "" ]
then
PACKAGES_TO_INSTALL="$PACKAGES_TO_INSTALL git "
fi
if [ "$(which jq)" = "" ]
then
PACKAGES_TO_INSTALL="$PACKAGES_TO_INSTALL jq "
fi
if [ "$(which zip)" = "" ]
then
PACKAGES_TO_INSTALL="$PACKAGES_TO_INSTALL zip "
fi
if [ "$PACKAGES_TO_INSTALL" != "" ]
then
sudo apt-get install -y $PACKAGES_TO_INSTALL
else
echo "All packages already installed !!!"
fi
unset PACKAGES_TO_INSTALL

cd /tmp
curl -fsSL https://stk.stackspot.com/install.sh | bash
echo "~/.stk/bin" >> $GITHUB_PATH
Expand Down
Loading