Repository navigation
chore(zsh): audit the shell config against the agent-safety rule and guard the alias layer #515
Workflow file for this run
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: Tests | |
| on: | |
| push: | |
| branches: [master, main] | |
| pull_request: | |
| branches: [master, main] | |
| jobs: | |
| test: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: brew install bats-core shellcheck zsh markdownlint-cli2 stow | |
| - name: Setup test environment | |
| run: | | |
| chmod +x tests/helpers/*.bash | |
| chmod +x bin/.local/bin/* | |
| echo "$GITHUB_WORKSPACE/bin/.local/bin" >> $GITHUB_PATH | |
| echo "CI=true" >> $GITHUB_ENV | |
| - name: Lint shell scripts | |
| run: ./scripts/lint-shell | |
| - name: Lint markdown files | |
| run: markdownlint-cli2 --config markdown/.markdownlint-cli2.yaml "**/*.md" | |
| - name: Run tests | |
| run: bats tests/ --recursive |