Skip to content

Commit

Permalink
add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaurello committed Jan 23, 2024
1 parent c4c793e commit b7d47e5
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/xcm-wss-endpoints-monitor.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b7d47e5

Please sign in to comment.