ci: similar jobs use a single cache for Nix stores

Jobs that use the setup-nix action will share a single cache, which is created by a previous warm up Job.
This commit is contained in:
Andrei Dziahel
2023-12-12 18:46:40 -05:00
committed by Laurence Isla
parent 1cebc03313
commit c92f16a2cb
3 changed files with 30 additions and 38 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ jobs:
uses: ./.github/actions/setup-nix
with:
tools: loadtest
cache-id: test-pg
cache-id: test-loadtest
- uses: actions-ecosystem/action-get-latest-tag@v1
id: get-latest-tag
with:
@@ -55,7 +55,7 @@ jobs:
uses: ./.github/actions/setup-nix
with:
tools: loadtest
cache-id: test-pg
cache-id: test-loadtest
- name: Run loadtest
run: |
postgrest-loadtest-against ${{ steps.get-latest-tag.outputs.tag }}