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