chore(deps): update dependency @typescript-eslint/parser to v8 #441
This file contains 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: Lint pull requests or commits | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
types: | |
- opened | |
- synchronize | |
- ready_for_review | |
jobs: | |
test: | |
name: Lint code | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
- uses: pnpm/action-setup@v4 | |
name: Install pnpm | |
with: | |
version: 8 | |
run_install: false | |
- name: Install pnpm dependencies | |
run: pnpm install | |
- name: Lint code | |
run: pnpm run lint | |
- name: Build code | |
run: pnpm run build | |
- name: Run type checks | |
run: pnpm run type-check | |
- name: Ensure all rules are in the README | |
run: NODE_OPTIONS="--require esbuild-runner/register" ./node_modules/.bin/markdownlint README.md docs/README.md --config tests/docs/.markdownlint.json --rules tests/docs/README.ts | |
- name: Ensure all rules are documented | |
run: | | |
passes=true | |
for rule in $(ls lib/rules | sed 's/\.ts$//') | |
do | |
if [ ! -f "docs/rules/$rule.md" ] | |
then | |
passes=false | |
echo "Expected documentation for $rule to exist" | |
fi | |
done | |
if [ ! "$passes" = true ] | |
then | |
exit 1 | |
fi | |
- name: Ensure all rules are in the documentation sidebar | |
run: NODE_OPTIONS="--require esbuild-runner/register" ./node_modules/.bin/markdownlint docs/_sidebar.md --config tests/docs/.markdownlint.json --rules tests/docs/_sidebar.ts | |
- name: Copy Documentation README | |
run: ./.husky/pre-commit | |
- name: Ensure there is no Git Changes | |
run: | | |
if [ -z "$(git status --short)" ] | |
then | |
echo "README.md and docs/README.md are in sync" | |
else | |
echo "Make sure that the README.md and docs/README.md are in sync" | |
echo | |
echo "Difference:" | |
echo | |
git diff | |
exit 1 | |
fi |