-
Notifications
You must be signed in to change notification settings - Fork 4
33 lines (33 loc) · 1001 Bytes
/
ci-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: CI Check
on: push
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: '20.x'
- name: Clean Install
run: |
rm -rf node_modules
rm -rf package-lock.json
npm cache clean --force
npm install
echo "Prettier version:"
npx prettier --version
- name: Debug Prettier
run: |
echo "Files to be checked:"
npx prettier --list-different "**/*.{ts,js,tsx,jsx,css}"
echo "Checking specific file:"
npx prettier --check "frontend/src/pages/Landing/Landing.tsx"
echo "Running full check:"
ls -la frontend/src/pages/Landing/
cat frontend/src/pages/Landing/Landing.tsx | od -c
npm run format:check
- name: Run Linter
run: npm run lint
- name: Run Type Check
run: npm run type-check