-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 967 Bytes
/
code-quality.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
34
35
36
37
38
39
40
name: Code Quality
on:
pull_request:
branches: [main]
jobs:
code-quality:
name: Lint, Format, and Type Check
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- uses: pnpm/action-setup@v2
with:
version: 9.1.4
- name: Create .npmrc
run: |
echo "registry=https://registry.npmjs.org" > .npmrc
echo "@renegade-fi:registry=https://registry.npmjs.org" >> .npmrc
echo "@renegade-fi:tradingview-charts:registry=https://npm.pkg.github.com" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}" >> .npmrc
- name: Install dependencies
run: pnpm install --frozen-lockfile
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm run lint
- run: pnpm run format -- --check
- run: pnpm run typecheck