Skip to content

Commit

Permalink
Move IBFT E2E tests to nighly builds (#1382)
Browse files Browse the repository at this point in the history
  • Loading branch information
vcastellm committed Apr 12, 2023
1 parent c5f83e2 commit ccbe2b9
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
name: E2E tests
on: # yamllint disable-line rule:truthy
push:
branches:
- main
- develop
pull_request:
workflow_call:
outputs:
workflow_output:
description: "E2E IBFT output"
value: ${{ jobs.build.outputs.e2eibft_output_failure }}

jobs:
build:
Expand All @@ -14,16 +14,26 @@ jobs:
E2E_TESTS: true
E2E_LOGS: true
CI_VERBOSE: true
outputs:
e2eibft_output_failure: ${{ steps.run_e2eibft_failure.outputs.test_output }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x

- name: Run tests
run: make test-e2e

- name: Run tests failed
if: failure()
id: run_e2eibft_failure
run: echo "test_output=false" >> $GITHUB_OUTPUT

- name: Archive test logs
if: always()
uses: actions/upload-artifact@v3
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,15 @@ jobs:
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

e2e:
name: Polybft E2E Tests
name: PolyBFT E2E Tests
uses: ./.github/workflows/e2e-polybft.yml
needs: build

e2eibft:
name: IBFT E2E Tests
uses: ./.github/workflows/e2e.yml
needs: build

property:
name: Polybft Property Tests
uses: ./.github/workflows/property-polybft.yml
Expand All @@ -36,7 +41,7 @@ jobs:
notification:
name: Nightly Notifications
runs-on: ubuntu-latest
needs: [build, test, e2e, property, fuzz]
needs: [build, test, e2e, e2eibft, property, fuzz]
if: success() || failure()
steps:
- name: Notify Slack
Expand Down Expand Up @@ -90,6 +95,13 @@ jobs:
"text": "E2E tests ${{ needs.e2e.outputs.workflow_output == '' && ':white_check_mark:' || ':x: `failed`' }}"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "E2E IBFT tests ${{ needs.e2eibft.outputs.workflow_output == '' && ':white_check_mark:' || ':x: `failed`' }}"
}
},
{
"type": "section",
"text": {
Expand Down

0 comments on commit ccbe2b9

Please sign in to comment.