From e689e3efd8ae2ef81fa6ea1a319af216cade444f Mon Sep 17 00:00:00 2001 From: Patrick Toal Date: Fri, 20 Mar 2026 00:23:06 -0400 Subject: [PATCH] ci: Add caching --- .gitea/workflows/build.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index da594e7..f5ef4c6 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -11,6 +11,8 @@ on: jobs: build: runs-on: ubuntu-latest + env: + RUNNER_TOOL_CACHE: /toolcache steps: - name: Checkout @@ -20,12 +22,21 @@ jobs: uses: actions/setup-node@v4 with: node-version: "20" + cache: 'yarn' - name: Enable Corepack and Yarn run: | corepack enable corepack prepare yarn@stable --activate + - name: Cache node_modules + uses: actions/cache@v4 + with: + path: node_modules + key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }} + restore-keys: | + ${{ runner.os }}-node-modules- + - name: Install dependencies run: yarn install --immutable