Skip to content

Commit f45fc00

Browse files
authored
Merge pull request #909 from LIT-Protocol/fix/ci-lint-issue
fix(e2e): clean up lint workflow
2 parents 708f1ef + 4dd7f40 commit f45fc00

File tree

1 file changed

+4
-34
lines changed

1 file changed

+4
-34
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ on:
33
pull_request:
44
push:
55
branches:
6-
- master
7-
- main
8-
- develop
6+
- naga
7+
- canary-naga
98
jobs:
109
linter:
1110
runs-on: ubuntu-latest
@@ -32,36 +31,7 @@ jobs:
3231
- name: Install project dependencies
3332
run: bun install
3433

35-
- name: Debug Git and Environment
36-
run: |
37-
echo "Current branch:"
38-
git branch --show-current
39-
echo "Available branches:"
40-
git branch -a
41-
echo "Git remotes:"
42-
git remote -v
43-
echo "Last 3 commits:"
44-
git log --oneline -3
45-
echo "Git status:"
46-
git status
47-
echo "NX configuration:"
48-
cat nx.json | head -10
49-
echo "Prettier configuration:"
50-
cat .prettierrc
51-
5234
- name: Lint
5335
run: |
54-
echo "Running format check..."
55-
# Use prettier directly to avoid NX git issues
56-
npx prettier --check . || {
57-
echo "Format check failed. Running prettier --write to fix issues..."
58-
npx prettier --write .
59-
echo "Checking again after formatting..."
60-
npx prettier --check . || {
61-
echo "Still failing after auto-format. Manual intervention needed."
62-
exit 1
63-
}
64-
echo "Auto-formatting successful. All files are now properly formatted."
65-
echo "Note: Some files were auto-formatted. Consider committing these changes in your next commit."
66-
}
67-
echo "Format check passed!"
36+
echo "Running workspace format check..."
37+
NX_DAEMON=false bun run format:check

0 commit comments

Comments
 (0)