Skip to content

Commit 5a70902

Browse files
ci: add cache-key to test workflows for v2 compatibility (#110)
Add the required cache-key input to test-action.yml and step-duration-regression.yml so they work on the release/v2 branch. Also trigger on push to release/v2 branch. Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 426bee8 commit 5a70902

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/step-duration-regression.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
workflow_dispatch:
99
pull_request:
1010
push:
11-
branches: [main]
11+
branches: [main, release/v2]
1212
schedule:
1313
- cron: "17 6 * * *"
1414

@@ -27,6 +27,7 @@ jobs:
2727
- name: ${{ env.SETUP_STEP_NAME }}
2828
uses: ./
2929
with:
30+
cache-key: test/step-duration-regression
3031
buildx-version: v0.23.0
3132

3233
- name: Trivial build

.github/workflows/test-action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
pull_request:
66
push:
7-
branches: [main]
7+
branches: [main, release/v2]
88

99
jobs:
1010
test-setup:
@@ -43,6 +43,7 @@ jobs:
4343
- name: Test Docker Builder Setup
4444
uses: ./
4545
with:
46+
cache-key: test/setup-docker-builder
4647
buildx-version: "v0.23.0"
4748
nofallback: "false"
4849
continue-on-error: true # Allow failure since we may not have Blacksmith env vars
@@ -97,6 +98,7 @@ jobs:
9798
- name: Test Docker Builder Setup with Driver Options
9899
uses: ./
99100
with:
101+
cache-key: test/setup-docker-builder-driver-opts
100102
buildx-version: "v0.23.0"
101103
driver-opts: |
102104
env.TEST_VAR_1=value1

0 commit comments

Comments
 (0)