Skip to content
Closed
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
23 changes: 20 additions & 3 deletions .github/workflows/auto-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: "Automated tests for increment version"
on:
push:
paths:
- '.github/workflows/auto-tests.yml'
- 'increment.sh'
- 'tests/**'
pull_request:
Expand All @@ -13,7 +14,23 @@ jobs:
steps:
- name: 📥 Check out repository
uses: actions/checkout@v4
- name: 🧰 Install jq
run: sudo apt update && sudo apt install -y jq
- name: 🧰 Check and Install jq
run: |
if command -v jq >/dev/null 2>&1; then
echo "✅ jq ist bereits installiert."
jq --version
else
echo "⚠️ jq ist nicht installiert. Installation wird durchgeführt..."
sudo apt update && sudo apt install -y jq
jq --version
fi
wget https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux64 -O /usr/local/bin/jq
chmod +x /usr/local/bin/jq
jq --version
/usr/local/bin/jq --version
which jq
- name: 🧪 Matrix tests
run: bash tests/run-tests.sh --manual
run: |
which jq
jq --version
bash tests/run-tests.sh --manual
8 changes: 4 additions & 4 deletions .github/workflows/testing_options.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ on:
required: true
type: boolean
default: true
preversion-start:
description: 'Preversion start @'
preversion-start-zero:
description: 'Preversion start with 0'
required: true
type: number
default: "0"
type: boolean
default: false
use-build:
description: 'Use Build?'
required: true
Expand Down
1 change: 1 addition & 0 deletions tests/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ for MATRIX_FILE in "$TEST_FILES_DIR"/*.json; do
done < <(jq -c '.[]' "$MATRIX_FILE")
done

echo "Running on bash version: $BASH_VERSION"
echo -e "\n📊 Test report:"
echo " - Total tests: $total"
echo " - OK: $((passed))"
Expand Down
Loading