|
1 | | -name: Lint and Format Check |
2 | | - |
3 | | -on: |
4 | | - pull_request: |
5 | | - paths: |
6 | | - - 'client/**' |
7 | | - workflow_dispatch: |
8 | | - |
9 | | -jobs: |
10 | | - client-lint-format: |
11 | | - runs-on: ubuntu-latest |
12 | | - |
13 | | - steps: |
14 | | - - name: Checkout code |
15 | | - uses: actions/checkout@v2 |
16 | | - |
17 | | - - name: Set up Node.js |
18 | | - uses: actions/setup-node@v3 |
19 | | - with: |
20 | | - node-version: '18.18.0' |
21 | | - |
22 | | - - name: Install dependencies |
23 | | - run: npm install |
24 | | - working-directory: client |
25 | | - |
26 | | - - name: Run ESLint |
27 | | - run: npm run lint |
28 | | - working-directory: client |
29 | | - |
30 | | - - name: Run Prettier for formatting check |
31 | | - run: npx prettier --check "src/**/*.{ts,tsx}" |
32 | | - working-directory: client |
33 | | - |
34 | | - - name: Run Type Check |
35 | | - run: npx --package=typescript@latest -- tsc --build . |
36 | | - working-directory: client |
37 | | - |
38 | | - |
39 | | - |
| 1 | +#name: Lint and Format Check |
| 2 | +# |
| 3 | +#on: |
| 4 | +# pull_request: |
| 5 | +# paths: |
| 6 | +# - 'client/**' |
| 7 | +# workflow_dispatch: |
| 8 | +# |
| 9 | +#jobs: |
| 10 | +# client-lint-format: |
| 11 | +# runs-on: ubuntu-latest |
| 12 | +# |
| 13 | +# steps: |
| 14 | +# - name: Checkout code |
| 15 | +# uses: actions/checkout@v2 |
| 16 | +# |
| 17 | +# - name: Set up Node.js |
| 18 | +# uses: actions/setup-node@v3 |
| 19 | +# with: |
| 20 | +# node-version: '18.18.0' |
| 21 | +# |
| 22 | +# - name: Install dependencies |
| 23 | +# run: npm install |
| 24 | +# working-directory: client |
| 25 | +# |
| 26 | +# - name: Run ESLint |
| 27 | +# run: npm run lint |
| 28 | +# working-directory: client |
| 29 | +# |
| 30 | +# - name: Run Prettier for formatting check |
| 31 | +# run: npx prettier --check "src/**/*.{ts,tsx}" |
| 32 | +# working-directory: client |
| 33 | +# |
| 34 | +# - name: Run Type Check |
| 35 | +# run: npx --package=typescript@latest -- tsc --build . |
| 36 | +# working-directory: client |
| 37 | +# |
| 38 | +# |
| 39 | +# |
0 commit comments