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
19 changes: 3 additions & 16 deletions .github/workflows/test-bash-framework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: Test Bash Framework
on:
push:
branches: [main]
paths-ignore: [ 'docs/**', '**/*.md' ]
paths: [ 'scripts-demo/**', 'tests/shell/bash/**' ]
pull_request:
paths-ignore: [ 'docs/**', '**/*.md' ]
paths: [ 'scripts-demo/**', 'tests/shell/bash/**' ]
workflow_dispatch:

jobs:
Expand All @@ -21,14 +21,8 @@ jobs:
- os: ubuntu-latest
shell-name: bash
shell-cmd: bash
- os: ubuntu-latest
shell-name: zsh
shell-cmd: zsh

# macOS - bash and zsh
- os: macos-latest
shell-name: bash
shell-cmd: bash
# macOS - zsh
- os: macos-latest
shell-name: zsh
shell-cmd: zsh
Expand All @@ -42,13 +36,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Install zsh (Ubuntu only)
if: matrix.os == 'ubuntu-latest' && matrix.shell-name == 'zsh'
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y zsh

- name: Run demo tests (excluding intentional failures)
shell: bash
working-directory: tests/shell/bash
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/test-bash-scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: Test Bash Scripts
on:
push:
branches: [main]
paths-ignore: [ 'docs/**', '**/*.md' ]
paths: [ 'scripts/**', 'tests/shell/bash/**' ]
pull_request:
paths-ignore: [ 'docs/**', '**/*.md' ]
paths: [ 'scripts/**', 'tests/shell/bash/**' ]
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -34,7 +34,8 @@ jobs:
working-directory: tests/shell/bash
run: |
./test-runner.sh \
--fail-fast true
--fail-fast true \
--verbose

- name: Test results summary
if: always()
Expand Down
57 changes: 57 additions & 0 deletions .github/workflows/test-framework-compose-filename-manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: "Call action manually: framework compose filename"

on:
workflow_dispatch:
inputs:
runner:
description: "Runner to use (e.g. ubuntu-latest, ubuntu-22.04, windows-latest, etc)"
type: string
required: false
default: ubuntu-latest
version:
description: 'OpenDAQ version (if not set, resolves to latest from openDAQ/openDAQ)'
required: false
platform:
description: 'Target platform (if not set, auto-detected)'
required: false
packaging:
description: 'Packaging format for cpack (if not set, uses runner OS name)'
required: false

jobs:
test-compose-filename-manually:
runs-on: ${{ inputs.runner }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Compose openDAQ framework filename
id: call-framework-compose-filename
uses: ./framework-compose-filename
with:
version: ${{ inputs.version }}
platform: ${{ inputs.platform }}
packaging: ${{ inputs.packaging }}

- name: Display Results
shell: bash
run: |
echo "╔══════════════════════════════════════════════════════════════════════════════╗"
echo "║ Package Filename Composition Results ║"
echo "╠══════════════════════════════════════════════════════════════════════════════╣"
echo "║ 🏷️ Version (full): ${{ steps.call-framework-compose-filename.outputs.version }}"
echo "║ ├─ Major: ${{ steps.call-framework-compose-filename.outputs.version-major }}"
echo "║ ├─ Minor: ${{ steps.call-framework-compose-filename.outputs.version-minor }}"
echo "║ ├─ Patch: ${{ steps.call-framework-compose-filename.outputs.version-patch }}"
echo "║ ├─ Suffix: ${{ steps.call-framework-compose-filename.outputs.version-suffix || '*** NOT SET ***' }}"
echo "║ └─ Hash: ${{ steps.call-framework-compose-filename.outputs.version-hash || '*** NOT SET ***' }}"
echo "╠══════════════════════════════════════════════════════════════════════════════╣"
echo "║ 🖥️ Platform (full): ${{ steps.call-framework-compose-filename.outputs.platform }}"
echo "║ ├─ OS Name: ${{ steps.call-framework-compose-filename.outputs.platform-os-name }}"
echo "║ ├─ OS Version: ${{ steps.call-framework-compose-filename.outputs.platform-os-version }}"
echo "║ └─ Architecture: ${{ steps.call-framework-compose-filename.outputs.platform-os-arch }}"
echo "╠══════════════════════════════════════════════════════════════════════════════╣"
echo "║ 📦 Packaging: ${{ steps.call-framework-compose-filename.outputs.packaging }}"
echo "╠══════════════════════════════════════════════════════════════════════════════╣"
echo "║ 📄 Filename: ${{ steps.call-framework-compose-filename.outputs.filename }}"
echo "╚══════════════════════════════════════════════════════════════════════════════╝"
82 changes: 82 additions & 0 deletions .github/workflows/test-framework-download-release-manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Test Download Release Asset

on:
workflow_dispatch:
inputs:
runner-os:
description: 'Runner OS to use'
required: true
type: string
default: 'ubuntu-latest'

version:
description: 'Release version (e.g., v3.20.4) or "latest"'
required: false
type: string
default: 'latest'

platform:
description: 'Target platform (e.g., ubuntu22.04-x86_64, win64) or leave empty for auto-detect'
required: false
type: string
default: ''

packaging:
description: 'Package format override (e.g., deb, exe, tar.gz, zip) or leave empty for auto-detect'
required: false
type: string
default: ''

asset-pattern:
description: 'Custom glob pattern to filter assets (overrides auto-detection)'
required: false
type: string
default: ''

output-dir:
description: 'Output directory for downloaded assets (leave empty for runner.temp)'
required: false
type: string
default: ''

verbose:
description: 'Enable verbose output'
required: false
type: boolean
default: true

jobs:
download-release:
name: Download on ${{ inputs.runner-os }}
runs-on: ${{ inputs.runner-os }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Download OpenDAQ release asset
id: download
uses: ./framework-download-release
with:
version: ${{ inputs.version }}
platform: ${{ inputs.platform }}
packaging: ${{ inputs.packaging }}
asset-pattern: ${{ inputs.asset-pattern }}
output-dir: ${{ inputs.output-dir }}
verbose: ${{ inputs.verbose }}

- name: Display results
shell: bash
run: |
echo "=== Download Results ==="
echo ""
echo "📦 Asset: ${{ steps.download.outputs.asset-filename }}"
echo "📍 Path: ${{ steps.download.outputs.asset }}"
echo "📂 Directory: ${{ steps.download.outputs.asset-dir }}"
echo ""
echo "🏷️ Version: ${{ steps.download.outputs.version }}"
echo "🖥️ Platform: ${{ steps.download.outputs.platform }}"
echo "📦 Packaging: ${{ steps.download.outputs.packaging }}"
echo ""
echo "📊 Size: ${{ steps.download.outputs.asset-filesize }} bytes"
echo "🔐 SHA256: ${{ steps.download.outputs.asset-checksum }}"
Loading