Skip to content

fix(ci): check zshrc load by verifying load_config function exists #113

fix(ci): check zshrc load by verifying load_config function exists

fix(ci): check zshrc load by verifying load_config function exists #113

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
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 jq
- name: Ensure scripts are executable
run: |
chmod +x tests/test-all.sh tests/test-critical-path.sh
chmod +x tests/test-functionality.sh tests/lint.sh
chmod +x install/setup.sh
- name: Run tests
run: ./tests/test-all.sh
- name: Run linting
run: ./tests/lint.sh
- name: Run shellcheck
run: |
find . -name "*.sh" -not -path "./.git/*" -print0 | \
xargs -0 shellcheck --severity=error || true
for f in bin/*; do
[ -f "$f" ] && head -1 "$f" | grep -q bash && \
shellcheck --severity=error "$f" || true
done
- 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 }}