Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion .github/workflows/drivers-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ jobs:
if: (needs['latest-tag-sha'].outputs.sha != github.sha)
runs-on: ubuntu-20.04
timeout-minutes: 30
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
steps:
- name: Check out the repo
uses: actions/checkout@v4
Expand All @@ -154,6 +156,7 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: (env.DOCKERHUB_USERNAME != '')
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Download native build
Expand All @@ -167,7 +170,18 @@ jobs:
context: .
file: ./packages/cubejs-docker/testing-drivers.Dockerfile
tags: cubejs/cube:testing-drivers
push: true
push: ${{ (env.DOCKERHUB_USERNAME != '') }}
- name: Save Docker image as artifact
run: |
IMAGE_TAG=cubejs/cube:testing-drivers
docker save -o image.tar $IMAGE_TAG
gzip image.tar
continue-on-error: true
- name: Upload Docker image artifact
uses: actions/upload-artifact@v4
with:
name: docker-image
path: image.tar.gz

tests:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -261,6 +275,16 @@ jobs:
cd packages/cubejs-testing-drivers
yarn tsc
- name: Download Docker image artifact
uses: actions/download-artifact@v4
with:
name: docker-image

- name: Load Docker image into Docker Daemon
run: |
gunzip image.tar.gz
docker load -i image.tar
- name: Run tests
uses: nick-fields/retry@v3
# It's enough to test for any one secret because they are set all at once or not set all
Expand Down
Loading