Skip to content

Commit a039ceb

Browse files
committed
chore(workflows): build lib when scanning
Signed-off-by: braks <[email protected]>
1 parent 1762eb4 commit a039ceb

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/qodana.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,50 @@ jobs:
2727
with:
2828
fetch-depth: 0
2929

30+
- name: Setup node env 🏗
31+
uses: actions/setup-node@v3
32+
with:
33+
node-version: ${{ matrix.node }}
34+
check-latest: true
35+
36+
- name: Install pnpm 🎒
37+
uses: pnpm/[email protected]
38+
with:
39+
version: 7
40+
run_install: false
41+
42+
- name: Setup pnpm config 🏗
43+
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
44+
45+
- name: Get pnpm store directory 🏬
46+
id: pnpm-cache
47+
shell: bash
48+
run: |
49+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
50+
51+
- name: Setup pnpm cache 🧃
52+
uses: actions/cache@v3
53+
with:
54+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
55+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
56+
restore-keys: |
57+
${{ runner.os }}-pnpm-store-
58+
59+
- name: Install dependencies 👨🏻‍💻
60+
run: pnpm install
61+
62+
- name: Setup Turbo cache 🏎️
63+
id: turbo-cache
64+
uses: actions/cache@v2
65+
with:
66+
path: .turbo
67+
key: turbo-${{ runner.os }}-${{ github.sha }}
68+
restore-keys: |
69+
turbo-${{ runner.os }}-
70+
71+
- name: Build Library 👷
72+
run: pnpm run build --cache-dir=.turbo
73+
3074
- name: Qodana Scan 🔍
3175
uses: JetBrains/qodana-action@main
3276
env:

0 commit comments

Comments
 (0)