From a039cebdb9eb821d50f893d1b904abdb939d0757 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Thu, 23 Feb 2023 13:36:29 +0100 Subject: [PATCH] chore(workflows): build lib when scanning Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --- .github/workflows/qodana.yml | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/.github/workflows/qodana.yml b/.github/workflows/qodana.yml index d1d0b918..8595c2c3 100644 --- a/.github/workflows/qodana.yml +++ b/.github/workflows/qodana.yml @@ -27,6 +27,50 @@ jobs: with: fetch-depth: 0 + - name: Setup node env 🏗 + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node }} + check-latest: true + + - name: Install pnpm 🎒 + uses: pnpm/action-setup@v2.2.2 + with: + version: 7 + run_install: false + + - name: Setup pnpm config 🏗 + run: pnpm config set store-dir $PNPM_CACHE_FOLDER + + - name: Get pnpm store directory 🏬 + id: pnpm-cache + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + + - name: Setup pnpm cache 🧃 + uses: actions/cache@v3 + with: + path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + + - name: Install dependencies 👨🏻‍💻 + run: pnpm install + + - name: Setup Turbo cache 🏎️ + id: turbo-cache + uses: actions/cache@v2 + with: + path: .turbo + key: turbo-${{ runner.os }}-${{ github.sha }} + restore-keys: | + turbo-${{ runner.os }}- + + - name: Build Library 👷 + run: pnpm run build --cache-dir=.turbo + - name: Qodana Scan 🔍 uses: JetBrains/qodana-action@main env: