Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
test-suite: [TestEthereumE2ESuite, TestFabricE2ESuite]
blockchain-provider: [geth, fabric]
database-type: [sqlite3]
test-suite: [TestEthereumE2ESuite, TestFabricE2ESuite]
exclude:
- blockchain-provider: geth
test-suite: TestFabricE2ESuite
Expand All @@ -56,5 +56,5 @@ jobs:
uses: actions/upload-artifact@v2
if: always()
with:
name: container-logs
name: container-logs-${{ matrix.test-suite }}-${{ matrix.blockchain-provider }}-${{ matrix.database-type }}
path: containerlogs/logs.txt
53 changes: 53 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Latest Integration Test

on:
push:
branches: [scheduled-e2e]
schedule:
- cron: '0 0 * * *'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is once per day at midnight?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct. But most likely "midnight" UTC so 8:00pm here (during some parts of the year). Yay time zones.

workflow_dispatch:

jobs:
e2e-test:
runs-on: ubuntu-latest
strategy:
matrix:
test-suite: [TestEthereumE2ESuite, TestFabricE2ESuite]
blockchain-provider: [geth, fabric]
database-type: [sqlite3, postgres]
exclude:
- blockchain-provider: geth
test-suite: TestFabricE2ESuite
- blockchain-provider: fabric
test-suite: TestEthereumE2ESuite
fail-fast: false
steps:
- uses: actions/checkout@v2

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

- name: Update manifest to latest commit for every service
run: ./manifestgen.sh head

- name: Pull latests FireFly build
run: |
docker pull ghcr.io/hyperledger/firefly:head
docker tag ghcr.io/hyperledger/firefly:head hyperledger/firefly

- name: Run E2E tests
env:
TEST_SUITE: ${{ matrix.test-suite }}
BLOCKCHAIN_PROVIDER: ${{ matrix.blockchain-provider }}
DATABASE_TYPE: ${{ matrix.database-type }}
BUILD_FIREFLY: false
run: ./test/e2e/run.sh

- name: Archive container logs
uses: actions/upload-artifact@v2
if: always()
with:
name: container-logs-${{ matrix.test-suite }}-${{ matrix.blockchain-provider }}-${{ matrix.database-type }}
path: containerlogs/logs.txt
2 changes: 1 addition & 1 deletion test/e2e/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ if [ "$BUILD_FIREFLY" == "true" ]; then
fi

if [ "$DOWNLOAD_CLI" == "true" ]; then
go install github.com/hyperledger/firefly-cli/ff@v0.0.36
go install github.com/hyperledger/firefly-cli/ff@v0.0.37
checkOk $?
fi

Expand Down