From 62e1ffd5b0ea1671ab8f3425f6ecb5ff95d47f44 Mon Sep 17 00:00:00 2001 From: Aurora Gaffney Date: Sat, 30 Sep 2023 19:59:18 -0500 Subject: [PATCH] ci: scheduled chainsync test --- .github/workflows/chainsync.yml | 65 +++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 .github/workflows/chainsync.yml diff --git a/.github/workflows/chainsync.yml b/.github/workflows/chainsync.yml new file mode 100644 index 00000000..907087b5 --- /dev/null +++ b/.github/workflows/chainsync.yml @@ -0,0 +1,65 @@ +name: chainsync + +on: + schedule: + # Run on Monday at 1am UTC + - cron: '0 1 * * 1' + # TODO: remove me + push: + branches: + - ci/chainsync-schedule + +jobs: + mainnet: + runs-on: self-hosted + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 + with: + go-version: 1.20.x + - run: | + make + - id: sync + continue-on-error: true + run: | + ./gouroboros -network mainnet -address relays-new.cardano-mainnet.iohk.io:3001 -ntn chain-sync -bulk + + preview: + runs-on: self-hosted + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 + with: + go-version: 1.20.x + - run: | + make + - id: sync + continue-on-error: true + run: | + ./gouroboros -network preview -address preprod-node.world.dev.cardano.org:30002 -ntn chain-sync -bulk + - if: steps.sync.outcome == 'success' + uses: rjstone/discord-webhook-notify@v1 + with: + severity: info + details: Chain sync test succeeded + webhookUrl: ${{ secrets.DISCORD_WEBHOOK_URL_TEST }} + - if: steps.sync.outcome == 'failure' + uses: rjstone/discord-webhook-notify@v1 + with: + severity: info + details: Chain sync test failed + webhookUrl: ${{ secrets.DISCORD_WEBHOOK_URL_TEST }} + + preprod: + runs-on: self-hosted + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 + with: + go-version: 1.20.x + - run: | + make + - id: sync + continue-on-error: true + run: | + ./gouroboros -network preprod -address preprod-node.world.dev.cardano.org:30000 -ntn chain-sync -bulk