Skip to content

Commit

Permalink
Build Docker once to share with all E2E jobs
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
  • Loading branch information
awrichar committed Jul 26, 2022
1 parent 8e17c9a commit 203e550
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,33 @@ jobs:
- name: Upload coverage
run: bash <(curl -s https://codecov.io/bash)

docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Build Docker image
run: make docker

- name: Save Docker image
run: docker save --output firefly.tar.gz hyperledger/firefly

- name: Upload Docker image
uses: actions/upload-artifact@v3
with:
name: firefly-docker
path: firefly.tar.gz

e2e-test:
runs-on: ubuntu-latest
needs: docker
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -79,8 +104,17 @@ jobs:
with:
go-version: 1.17

- name: Download Docker image
uses: actions/download-artifact@v3
with:
name: firefly-docker

- name: Load Docker image
run: docker load --input firefly.tar.gz

- name: Run E2E tests
env:
BUILD_FIREFLY: false
TEST_SUITE: ${{ matrix.test-suite }}
BLOCKCHAIN_PROVIDER: ${{ matrix.blockchain-provider }}
TOKENS_PROVIDER: ${{ matrix.token-provider }}
Expand Down

0 comments on commit 203e550

Please sign in to comment.