Skip to content

Commit

Permalink
chore: add short lived cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
dolcalmi committed Oct 23, 2024
1 parent 2b662e5 commit 4968d3e
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/e2e-test2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ jobs:
target
.buckd
buck-out/cache
key: buck2-${{ runner.os }}-${{ matrix.target }}
key: b2-${{ matrix.target }}-${{ github.sha:(-4) }}
enableCrossOsArchive: true

tests:
name: execute via bats
Expand Down Expand Up @@ -81,7 +82,25 @@ jobs:
target
.buckd
buck-out/cache
key: buck2-${{ runner.os }}-
key: |
b2-//core/api-${{ github.sha:(-4) }}
b2-//core/api-ws-server-${{ github.sha:(-4) }}
b2-//core/api-trigger-${{ github.sha:(-4) }}
b2-//core/api-exporter-${{ github.sha:(-4) }}
b2-//apps/dashboard-${{ github.sha:(-4) }}
b2-//apps/consent-${{ github.sha:(-4) }}
b2-//apps/pay-${{ github.sha:(-4) }}
b2-//apps/admin-panel-${{ github.sha:(-4) }}
b2-//apps/map-${{ github.sha:(-4) }}
b2-//apps/voucher-${{ github.sha:(-4) }}
b2-//core/api-keys-${{ github.sha:(-4) }}
b2-//core/notifications-${{ github.sha:(-4) }}
b2-//bats/helpers/callback:run-${{ github.sha:(-4) }}
b2-//bats/helpers/subscriber:run-${{ github.sha:(-4) }}
b2-//bats/helpers/totp:generate-${{ github.sha:(-4) }}
restore-keys: |
buck2-${{ runner.os }}-
fail-on-cache-miss: true

- name: Run bats tests
run: |
Expand Down

0 comments on commit 4968d3e

Please sign in to comment.