Skip to content

Commit

Permalink
Add CI step to docker pull the run image ahead of tests (#892)
Browse files Browse the repository at this point in the history
* Add CI step to docker pull the run image ahead of tests
  • Loading branch information
colincasey authored Jul 14, 2024
1 parent 046ffff commit 5e18168
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:

permissions:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 5e18168

Please sign in to comment.