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
46 changes: 0 additions & 46 deletions .github/workflows/README.md

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/test-all-actions.yml

This file was deleted.

73 changes: 73 additions & 0 deletions .github/workflows/test-bash-framework.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Test Bash Framework

on:
push:
paths-ignore: [ 'docs/**', '**/*.md' ]
pull_request:
paths-ignore: [ 'docs/**', '**/*.md' ]
workflow_dispatch:

jobs:
test-framework:
name: Test Framework on ${{ matrix.os }} with ${{ matrix.shell-name }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
include:
# Ubuntu - bash and zsh
- 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
- os: macos-latest
shell-name: zsh
shell-cmd: zsh

# Windows - bash only
- os: windows-latest
shell-name: bash
shell-cmd: bash

steps:
- 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
env:
OPENDAQ_TESTS_SCRIPTS_DIR: "${{ github.workspace }}/scripts-demo/shell/bash"
OPENDAQ_TESTS_SUITES_DIR: "${{ github.workspace }}/tests/shell/bash/suites-demo"

run: |
${{ matrix.shell-cmd }} ./test-runner.sh \
--include-test 'test-basic:*' \
--include-test 'test-integration:*' \
--include-test 'test-advanced:*' \
--include-test 'test-math-utils:*' \
--exclude-test '*:test-integration-fail' \
--exclude-test '*:test-*-slow' \
--fail-fast true

- name: Test results summary
if: always()
shell: bash
run: |
echo "### Test Results for ${{ matrix.os }} - ${{ matrix.shell-name }}" >> $GITHUB_STEP_SUMMARY
echo "✅ Framework tests completed" >> $GITHUB_STEP_SUMMARY
43 changes: 43 additions & 0 deletions .github/workflows/test-bash-scripts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Test Bash Scripts

on:
push:
paths-ignore: [ 'docs/**', '**/*.md' ]
pull_request:
paths-ignore: [ 'docs/**', '**/*.md' ]
workflow_dispatch:

jobs:
test-scripts:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

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

- name: Setup environment variables
shell: bash
run: |
# Set scripts directory
echo "OPENDAQ_TESTS_SCRIPTS_DIR=${{ github.workspace }}/scripts/shell/bash" >> $GITHUB_ENV
echo "OPENDAQ_TESTS_SUITES_DIR=${{ github.workspace }}/tests/shell/bash/suites" >> $GITHUB_ENV

- name: Run tests (excluding demos except math-utils)
shell: bash
working-directory: tests/shell/bash
run: |
./test-runner.sh \
--fail-fast true

- name: Test results summary
if: always()
shell: bash
run: |
echo "### Test Results for ${{ matrix.os }}" >> $GITHUB_STEP_SUMMARY
echo "✅ Script tests completed" >> $GITHUB_STEP_SUMMARY
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# OS temporary files
.DS_Store
Thumbs.db

# Secrets
.secrets

# Local configs
.actrc
Loading