-
Notifications
You must be signed in to change notification settings - Fork 5
55 lines (43 loc) · 1.29 KB
/
code-quality.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
51
52
53
54
55
name: Code Quality
on: [push]
concurrency: ${{ github.workflow }}-${{ github.ref }}
env:
CI: true
jobs:
publish-packages:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '21'
- name: Configure CI Git User
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
git remote set-url origin https://$GITHUB_ACTOR:[email protected]/codelitdev/medialit
env:
GITHUB_PAT: ${{ secrets.PAT }}
- name: Checkout and pull branch
run: git checkout "${GITHUB_REF:11}" && git pull
- name: Install pnpm
run: |
npm i pnpm@latest -g
- name: Install dependencies
run: pnpm install
- name: Run lint
run: pnpm lint
- name: Run prettier
run: pnpm prettier
- name: Build dependencies
run: |
pnpm --filter=@medialit/utils build
pnpm --filter=@medialit/models build
pnpm --filter=@medialit/images build
pnpm --filter=@medialit/thumbnail build
- name: Run test
run: pnpm test