Skip to content

print stackql version in action logs and update test to validate regi… #15

print stackql version in action logs and update test to validate regi…

print stackql version in action logs and update test to validate regi… #15

name: 'setup stackql test'
on:
push:
branches:
- main
- 'develop-**'
pull_request:
defaults:
run:
shell: bash
jobs:
stackql-test-matrix:
name: Stackql local run on ${{ matrix.os }} ${{ matrix.use_wrapper && 'with' || 'without' }} wrapper
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
use_wrapper: [true, false]
steps:
- name: Checkout
uses: actions/checkout@v4.1.4
- name: Setup Stackql
uses: ./
with:
use_wrapper: ${{matrix.use_wrapper}}
- name: Run Registry List and Validate
run: |
OUTPUT=$(stackql exec --output json "REGISTRY LIST")
echo "Registry list output:"
echo "$OUTPUT"
# Validate JSON structure: array of objects each with provider and version keys
echo "$OUTPUT" | jq -e 'type == "array" and (all(.[]; has("provider") and has("version")))' > /dev/null
echo "Registry list validated successfully."