-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI step to docker pull the run image ahead of tests (#892)
* Add CI step to docker pull the run image ahead of tests
- Loading branch information
1 parent
046ffff
commit 5e18168
Showing
1 changed file
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: CI | |
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
branches: ["main"] | ||
pull_request: | ||
|
||
permissions: | ||
|
@@ -102,6 +102,13 @@ jobs: | |
uses: buildpacks/github-actions/[email protected] | ||
- name: Pull builder image | ||
run: docker pull ${{ env.INTEGRATION_TEST_CNB_BUILDER }} | ||
- name: Pull run image | ||
run: | | ||
RUN_IMAGE=$( | ||
docker inspect --format='{{index .Config.Labels "io.buildpacks.builder.metadata"}}' '${{ env.INTEGRATION_TEST_CNB_BUILDER }}' \ | ||
| jq --exit-status --raw-output '.stack.runImage.image' | ||
) | ||
docker pull "${RUN_IMAGE}" | ||
- name: Run integration tests | ||
working-directory: ${{ matrix.dir }} | ||
run: cargo test --locked -- --ignored --test-threads 16 | ||
|
@@ -134,7 +141,7 @@ jobs: | |
matrix: | ||
# check the minimum node version supported by the metrics script and the latest node version | ||
# (assumes the versions between have backwards-compatible APIs) | ||
version: [ 14.10.0, latest ] | ||
version: [14.10.0, latest] | ||
name: Test Metrics (${{ matrix.version }}) | ||
runs-on: ubuntu-latest | ||
steps: | ||
|