Skip to content

Commit

Permalink
test(ors-test-scenarios): Try multiple cache-to destinations
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelsJP committed Nov 11, 2024
1 parent 3dce382 commit e8ba8bf
Showing 1 changed file with 7 additions and 28 deletions.
35 changes: 7 additions & 28 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,19 +87,6 @@ jobs:
file: ors-test-scenarios/src/test/resources/Dockerfile
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Export to build artifacts
uses: docker/build-push-action@v2
with:
context: .
file: ors-test-scenarios/src/test/resources/Dockerfile
tags: ${{ matrix.docker_image }}:latest
outputs: type=oci,dest=/tmp/${{ matrix.docker_image }}.tar
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.docker_image }}
path: /tmp/${{ matrix.docker_image }}.tar
overwrite: true
ors-test-scenarios:
name: Run the ors-test-scenarios integration tests
runs-on: ubuntu-latest
Expand All @@ -125,22 +112,14 @@ jobs:
id: buildx
with:
install: true
- name: Download all artifact
uses: actions/download-artifact@v4
- name: Load the Docker image
uses: docker/build-push-action@v4
with:
# glob pattern to match all files in the artifact
pattern: 'ors-test-scenarios-*.tar'
path: /tmp/
merge-multiple: true
- name: Load the Docker images
run: |
# Iterate over all files in the directory /tmp with the pattern ors-test-scenarios-*.tar
for file in /tmp/ors-test-scenarios-*.tar; do
echo "Loading image from $file"
docker load -i $file
done
# List all images
docker image ls -a
context: .
load: true
tags: ors-test-scenarios-maven:latest
file: ors-test-scenarios/src/test/resources/Dockerfile
cache-from: type=gha
- name: Run integration tests
run: |
echo "Running integration tests ${{ matrix.test_class }}"
Expand Down

0 comments on commit e8ba8bf

Please sign in to comment.