Merge pull request #12 from digitalxs/claude/create-dxsbash-website-3… #407
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Shell Testing | |
| on: [push, pull_request] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, ubuntu-22.04, debian-latest] | |
| shell: [bash, zsh, fish] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Install test dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y shellcheck zsh fish | |
| - name: Test Bash scripts | |
| if: matrix.shell == 'bash' | |
| run: | | |
| shellcheck -f gcc *.sh .bashrc || true | |
| bash -n .bashrc | |
| - name: Test Zsh scripts | |
| if: matrix.shell == 'zsh' | |
| run: | | |
| zsh -n .zshrc || true | |
| - name: Test Fish scripts | |
| if: matrix.shell == 'fish' | |
| run: | | |
| fish -n config.fish || true | |
| - name: Test installation (dry run) | |
| run: | | |
| # Add installation test here | |
| echo "Installation test placeholder" |