chore: maintenance tasks #110
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install tools | |
| run: | | |
| sudo apt-get update -q | |
| sudo apt-get install -y shellcheck zsh | |
| - name: Validate file permissions | |
| run: | | |
| chmod +x tests/test-all.sh | |
| chmod +x tests/lint.sh | |
| chmod +x install/setup.sh | |
| - name: Run comprehensive tests | |
| run: ./tests/test-all.sh | |
| - name: Run linting | |
| run: ./tests/lint.sh | |
| - name: Test installation dry-run | |
| run: DRY_RUN=true ./install/setup.sh | |
| cross-platform: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install tools (Ubuntu) | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update -q | |
| sudo apt-get install -y shellcheck zsh | |
| - name: Install tools (macOS) | |
| if: runner.os == 'macOS' | |
| run: | | |
| # macOS already has zsh, just ensure permissions | |
| chmod +x tests/test-all.sh tests/lint.sh install/setup.sh | |
| - name: Validate file permissions (Ubuntu) | |
| if: runner.os == 'Linux' | |
| run: | | |
| chmod +x tests/test-all.sh | |
| chmod +x tests/lint.sh | |
| chmod +x install/setup.sh | |
| - name: Run comprehensive tests | |
| run: ./tests/test-all.sh | |
| - name: Test dry-run install | |
| run: DRY_RUN=true ./install/setup.sh | |
| security: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Run Gitleaks | |
| uses: gitleaks/gitleaks-action@v2 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |