diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 2309836..ceff24c 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -27,6 +27,12 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Cache gems + uses: actions/cache@v4 + with: + path: .gems + key: gems-${{ hashFiles('Gemfile.lock') }} + - name: Wait for Postgres run: | for i in $(seq 1 30); do diff --git a/.forgejo/workflows/test.yaml b/.forgejo/workflows/test.yaml index 19c46df..f9fd65e 100644 --- a/.forgejo/workflows/test.yaml +++ b/.forgejo/workflows/test.yaml @@ -33,6 +33,14 @@ jobs: - name: Checkout uses: actions/checkout@v4 + # The nix closure persists in the runner's nix-store volume; gems live + # in the workspace (.gems via the flake's BUNDLE_PATH), so cache those. + - name: Cache gems + uses: actions/cache@v4 + with: + path: .gems + key: gems-${{ hashFiles('Gemfile.lock') }} + - name: Wait for Postgres run: | for i in $(seq 1 30); do