From 9cb7cf000f5d73d2b4080bc36105411dce3600ca Mon Sep 17 00:00:00 2001 From: Jan-Marlon Leibl Date: Tue, 27 May 2025 13:23:56 +0200 Subject: [PATCH] ci: update CI workflow for Yarn integration and caching --- .gitea/workflows/ci.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 2519474..3e18cb0 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -174,8 +174,17 @@ jobs: with: bun-version: ${{ env.BUN_VERSION }} - - name: Install node_modules with yarn lockfile - run: bun install --frozen-lockfile --yarn + - name: Setup Yarn + run: bun install -g yarn - - name: Run dependency vulnerability check - run: bunx audit-ci --moderate --report-type summary + - name: Restore node_modules cache + uses: actions/cache@v4 + with: + path: node_modules + key: node-modules-${{ needs.quick-checks.outputs.cache-key }} + + - name: Install dependencies with yarn (if cache miss) + run: yarn install --frozen-lockfile + + - name: Run dependency vulnerability check with yarn + run: yarn audit-ci --moderate --report-type summary