diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e1c503280..fdadcdbe6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -3,9 +3,8 @@ on: pull_request: push: branches: - - master - - main - - develop + - naga + - canary-naga jobs: linter: runs-on: ubuntu-latest @@ -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!" \ No newline at end of file + echo "Running workspace format check..." + NX_DAEMON=false bun run format:check