github.com/MetalBlockchain/metalgo@v1.11.9/.github/workflows/net-outage-sim.yml (about)

     1  name: network-outage-simulation
     2  
     3  on:
     4    workflow_dispatch:
     5    schedule:
     6      # * is a special character in YAML so you have to quote this string
     7      # Run every day at 7 AM. (The database backup is created around 5 AM.)
     8      - cron: "0 7 * * *"
     9  
    10  jobs:
    11    run_sim:
    12      runs-on: [self-hosted, linux, x64, net-outage-sim]
    13  
    14      steps:
    15        - name: Checkout
    16          uses: actions/checkout@v4
    17  
    18        - name: Cleanup docker (avoid conflicts with previous runs)
    19          shell: bash
    20          run: .github/workflows/cleanup-net-outage-sim.sh
    21  
    22        - name: Download metalgo:latest
    23          run: docker pull metalblockchain/metalgo:latest
    24  
    25        - name: Run the internet outage simulation
    26          shell: bash
    27          run: .github/workflows/run-net-outage-sim.sh
    28  
    29        - name: Cleanup again
    30          if: always() # Always clean up
    31          shell: bash
    32          run: .github/workflows/cleanup-net-outage-sim.sh