Skip to content

Add RustScript TextMate grammar #2

Add RustScript TextMate grammar

Add RustScript TextMate grammar #2

Workflow file for this run

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