Skip to content

Commit

Permalink
test: build caching
Browse files Browse the repository at this point in the history
  • Loading branch information
erikburt committed Dec 7, 2024
1 parent b8e686c commit bf69b91
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/actions/setup-ci-core-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ inputs:
The expected database URL
required: true

mod-cache-version:
description: |
The version of the module cache to use. Used for cache busting.
required: false

build-cache-version:
description: |
The version of the build cache to use. Used for scoping build caches.
Expand All @@ -40,6 +45,7 @@ runs:
- name: Setup Go
uses: ./.github/actions/setup-go
with:
cache-version: ${{ inputs.mod-cache-version }}
build-cache-version: ${{ inputs.build-cache-version }}
restore-build-cache-only: ${{ inputs.restore-build-cache-only }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-core-partial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ jobs:
- name: Setup CI Core Environment
uses: ./.github/actions/setup-ci-core-tests
with:
mod-cache-version: "1"
build-cache-version: ${{ matrix.type.test-suite }}
restore-build-cache-only: "true"
db-url: ${{ env.DB_URL }}
go-mod-download-directory: ${{ matrix.type.test-suite == 'ccip-deployment' && matrix.type.module-directory || '' }}

Expand All @@ -87,7 +87,7 @@ jobs:
with:
pipeline-step: "run"
run-concurrency: "16"
run-all-tests: ${{ needs.filter.outputs.should-run-all-tests }}
run-all-tests: "true"
collect-coverage: ${{ needs.filter.outputs.should-collect-coverage }}
test-suite: ${{ matrix.type.test-suite }}
module-directory: ${{ matrix.type.module-directory }}
Expand Down

0 comments on commit bf69b91

Please sign in to comment.