diff --git a/.github/workflows/xcm-wss-endpoints-monitor.yml b/.github/workflows/xcm-wss-endpoints-monitor.yml new file mode 100644 index 00000000..25a0310c --- /dev/null +++ b/.github/workflows/xcm-wss-endpoints-monitor.yml @@ -0,0 +1,31 @@ +name: XCM WS endpoints monitor + +on: + workflow_dispatch: + schedule: + # Runs every 30 minutes + - cron: '*/30 * * * *' + +jobs: + run_script: + runs-on: ubuntu-latest + + steps: + - name: 🤘 checkout + uses: actions/checkout@v3 + + - name: ⚙️ Setup Node.js environment + uses: actions/setup-node@v3 + with: + node-version-file: '.nvmrc' + cache: 'npm' + + - name: Update npm + run: npm i -g npm@9 + + - name: ⬇️ install + run: npm ci --ignore-scripts + + # TODO remove --include-test-chains + - name: 💻 Run script with ts-node + run: npx bun ./scripts/check-websockets.ts --slack-wh=${{ secrets.SLACK_WEBHOOK_URL }} --include-test-chains