-
Notifications
You must be signed in to change notification settings - Fork 49
71 lines (64 loc) · 2.01 KB
/
nightly-update-test-testnet-main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
# This workflow performs from Testnet to the latest main update.
# Test means that net starts from plain (empty) aleph-node chain, bootstraped using starting
# node image, and then performs rolling restart to target node image
# What this test validates are changes in finalization area to aleph-node binary
name: Nightly update net test from Testnet to main
on:
workflow_dispatch:
# Daily at 02:20
schedule:
- cron: '20 02 * * *'
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: false
jobs:
check-vars-and-secrets:
name: Check vars and secrets
uses: ./.github/workflows/_check-vars-and-secrets.yml
secrets: inherit
create-featurenet-from-testnet:
needs: [check-vars-and-secrets]
name: Create featurenet from testnet
uses: ./.github/workflows/featurenet-create.yml
secrets: inherit
with:
featurenet-name: 'ops-updatenet-testnet'
ref: 'testnet'
expiration: '4h'
validators: '8'
internal: true
short-session: false
finality-version: '3'
update-featurenet-to-main:
needs: [create-featurenet-from-testnet]
name: Update featurenet to main
uses: ./.github/workflows/featurenet-update.yml
secrets: inherit
with:
featurenet-name: 'ops-updatenet-testnet'
ref: 'main'
rolling-update-partition: '0'
short-session: false
delete-featurenet:
if: ${{ always() }}
needs: [update-featurenet-to-main]
name: Delete featurenet
uses: ./.github/workflows/featurenet-delete.yml
secrets: inherit
with:
featurenet-name: 'ops-updatenet-testnet'
slack-notification:
name: Slack notification
runs-on: ubuntu-20.04
needs: [delete-featurenet]
if: >
!cancelled() &&
github.event_name != 'workflow_dispatch'
steps:
- name: Send Slack message
uses: Cardinal-Cryptography/github-actions/slack-notification@v7
with:
notify-on: "failure"
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_DEV_ONDUTY }}