-
Notifications
You must be signed in to change notification settings - Fork 174
50 lines (45 loc) · 1.42 KB
/
frontend-linters.yaml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Frontend Linters
on:
pull_request:
paths:
- "frontend/**"
env:
GITHUB_WORKFLOW: github_actions
jobs:
build:
runs-on: ubuntu-latest
env:
working-directory: ./frontend
PUBLIC_BACKEND_API_URL: "http://127.0.0.1:8000/api"
strategy:
max-parallel: 4
matrix:
node-version: ["20"]
steps:
- uses: actions/checkout@v3
- name: Set up node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install latest pnpm
working-directory: ${{env.working-directory}}
run: |
npm install -g pnpm &&
pnpm --version &&
pnpm list -g --depth 0
- name: Install prettier
working-directory: ${{env.working-directory}}
run: pnpm add --save-dev prettier
- name: Run prettier
working-directory: ${{env.working-directory}}
run: pnpm exec prettier --check .
# NOTE: The following will be uncommented once the codebase is cleaned up
# - name: Install dependencies
# working-directory: ${{env.working-directory}}
# run: pnpm i --frozen-lockfile
# - name: Run prettier check & eslint
# working-directory: ${{env.working-directory}}
# run: pnpm run lint
# - name: Run svelte-check
# working-directory: ${{env.working-directory}}
# run: pnpm run check