Skip to content

Commit

Permalink
Merge pull request #909 from kaleido-io/workflow
Browse files Browse the repository at this point in the history
Build Docker once to share with all E2E jobs
  • Loading branch information
awrichar authored Jul 26, 2022
2 parents 1486b27 + 203e550 commit ba355d8
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 ba355d8

Please sign in to comment.