Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 4 additions & 34 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ on:
pull_request:
push:
branches:
- master
- main
- develop
- naga
- canary-naga
jobs:
linter:
runs-on: ubuntu-latest
Expand All @@ -32,36 +31,7 @@ jobs:
- name: Install project dependencies
run: bun install

- name: Debug Git and Environment
run: |
echo "Current branch:"
git branch --show-current
echo "Available branches:"
git branch -a
echo "Git remotes:"
git remote -v
echo "Last 3 commits:"
git log --oneline -3
echo "Git status:"
git status
echo "NX configuration:"
cat nx.json | head -10
echo "Prettier configuration:"
cat .prettierrc

- name: Lint
run: |
echo "Running format check..."
# Use prettier directly to avoid NX git issues
npx prettier --check . || {
echo "Format check failed. Running prettier --write to fix issues..."
npx prettier --write .
echo "Checking again after formatting..."
npx prettier --check . || {
echo "Still failing after auto-format. Manual intervention needed."
exit 1
}
echo "Auto-formatting successful. All files are now properly formatted."
echo "Note: Some files were auto-formatted. Consider committing these changes in your next commit."
}
echo "Format check passed!"
echo "Running workspace format check..."
NX_DAEMON=false bun run format:check
Loading