forked from cadence-workflow/cadence
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (50 loc) · 1.65 KB
/
replication-simulation.yml
File metadata and controls
55 lines (50 loc) · 1.65 KB
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
# This workflow runs replication simulaton scenarios via GithubActions matrix strategy.
# Scenarios are defined in the `simulation/replication/testdata/replication_simulation_<scenario>.yaml` files.
name: Replication Simulation
on:
push:
pull_request:
jobs:
replication-simulation:
name: Replication Simulation (${{ matrix.scenario }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
scenario:
- activeactive
- activeactive_child
- activeactive_invalid_cluster_attribute
- activeactive_same_wfid
- activeactive_same_wfid_signalwithstart
- activeactive_same_wfid_signalwithstart_delayed
- activeactive_start_terminateifrunning
- activeactive_cron
- activeactive_regional_failover
- activeactive_regional_failover_start_same_wfid
- activeactive_regional_failover_start_same_wfid_2
- activepassive_to_activeactive
- budget_manager
- clusterredirection
- default
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Go environment
uses: actions/setup-go@v5
with:
go-version: '1.24.5'
- name: Run simulation
uses: nick-fields/retry@v3
with:
max_attempts: 2
timeout_minutes: 20
command: |
./simulation/replication/run.sh --scenario ${{ matrix.scenario }}
- name: Upload test logs
uses: actions/upload-artifact@v4
with:
name: replication-${{ matrix.scenario }}-test.log
path: ./test.log