.github/workflows: separate e2e workflows for 0.34.x and master (#6041)

Co-authored-by: Erik Grinaker <erik@interchain.berlin>
Co-authored-by: Marko <marbar3778@yahoo.com>
This commit is contained in:
Tess Rinearson
2021-02-03 16:26:46 +01:00
parent 0028ac38ed
commit 591e55b301
2 changed files with 29 additions and 11 deletions

View File

@@ -1,7 +1,8 @@
# Runs randomly generated E2E testnets nightly.
name: e2e-nightly
# Runs randomly generated E2E testnets nightly
# on the 0.34.x release branch
name: e2e-nightly-34x
on:
workflow_dispatch: # allow running workflow manually
workflow_dispatch: # allow running workflow manually, in theory
schedule:
- cron: '0 2 * * *'
@@ -21,6 +22,8 @@ jobs:
go-version: '^1.15.4'
- uses: actions/checkout@v2
with:
ref: 'v0.34.x'
- name: Build
working-directory: test/e2e
@@ -49,5 +52,21 @@ jobs:
SLACK_USERNAME: Nightly E2E Tests
SLACK_ICON_EMOJI: ':skull:'
SLACK_COLOR: danger
SLACK_MESSAGE: Nightly E2E tests failed
SLACK_MESSAGE: Nightly E2E tests failed on v0.34.x
SLACK_FOOTER: ''
e2e-nightly-success: # may turn this off once they seem to pass consistently
needs: e2e-nightly-test-2
if: ${{ success() }}
runs-on: ubuntu-latest
steps:
- name: Notify Slack on success
uses: rtCamp/action-slack-notify@ae4223259071871559b6e9d08b24a63d71b3f0c0
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: tendermint-internal
SLACK_USERNAME: Nightly E2E Tests
SLACK_ICON_EMOJI: ':white_check_mark:'
SLACK_COLOR: good
SLACK_MESSAGE: Nightly E2E tests passed on v0.34.x
SLACK_FOOTER: ''

View File

@@ -1,6 +1,5 @@
# Runs randomly generated E2E testnets nightly.
# Copy of earlier nightly test file, for debugging
name: e2e-nightly2
# Runs randomly generated E2E testnets nightly on master
name: e2e-nightly-master
on:
workflow_dispatch: # allow running workflow manually
schedule:
@@ -50,10 +49,10 @@ jobs:
SLACK_USERNAME: Nightly E2E Tests
SLACK_ICON_EMOJI: ':skull:'
SLACK_COLOR: danger
SLACK_MESSAGE: Nightly E2E (copy) tests failed
SLACK_MESSAGE: Nightly E2E (copy) tests failed on master
SLACK_FOOTER: ''
e2e-nightly-success:
e2e-nightly-success: # may turn this off once they seem to pass consistently
needs: e2e-nightly-test-2
if: ${{ success() }}
runs-on: ubuntu-latest
@@ -64,7 +63,7 @@ jobs:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: tendermint-internal
SLACK_USERNAME: Nightly E2E Tests
SLACK_ICON_EMOJI: ':green_heart:'
SLACK_ICON_EMOJI: ':white_check_mark:'
SLACK_COLOR: good
SLACK_MESSAGE: Nightly E2E (copy) tests failed
SLACK_MESSAGE: Nightly E2E (copy) tests passed on master
SLACK_FOOTER: ''