Add RustScript TextMate grammar #2
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: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| docs: | |
| name: Docs sanity checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check Markdown files | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| mapfile -t files < <(find . -type f -name '*.md' -not -path './.git/*' | sort) | |
| if [[ ${#files[@]} -eq 0 ]]; then | |
| echo 'no Markdown files found' >&2 | |
| exit 1 | |
| fi | |
| for file in "${files[@]}"; do | |
| if [[ ! -s "$file" ]]; then | |
| echo "empty Markdown file: $file" >&2 | |
| exit 1 | |
| fi | |
| if grep -n $'\r' "$file"; then | |
| echo "CRLF line ending found: $file" >&2 | |
| exit 1 | |
| fi | |
| done |