Skip to content

Commit

Permalink
Merge pull request #117 from multiversx/TOOL-467-workflows
Browse files Browse the repository at this point in the history
Sketch workflows that do regular checks
  • Loading branch information
andreibancioiu authored Feb 7, 2025
2 parents a546d6c + dea2497 commit 4ba16fd
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/regularly_check_devnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Regularly check devnet

on:
workflow_dispatch:
schedule:
- cron: "0 */2 * * *"

jobs:
check-devnet:
runs-on: ubuntu-latest

steps:
- uses: actions/setup-python@v5
with:
python-version: 3.11

- uses: actions/checkout@v4

- name: Install dependencies
run: |
pip install -r ./requirements-dev.txt
curl -sSfL https://raw.githubusercontent.com/coinbase/mesh-cli/master/scripts/install.sh | sh -s -- -b "$HOME/.local/bin"
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Build
run: |
cd $GITHUB_WORKSPACE/cmd/rosetta && go build .
cd $GITHUB_WORKSPACE/systemtests && go build ./proxyToObserverAdapter.go
- name: check:data
run: |
python3 ./systemtests/check_with_mesh_cli.py --mode=data --network=devnet
env:
PYTHONPATH: .
34 changes: 34 additions & 0 deletions .github/workflows/regularly_check_testnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Regularly check testnet

on:
workflow_dispatch:
schedule:
- cron: "0 */2 * * *"

jobs:
check-testnet:
runs-on: ubuntu-latest

steps:
- uses: actions/setup-python@v5
with:
python-version: 3.11

- uses: actions/checkout@v4

- name: Install dependencies
run: |
pip install -r ./requirements-dev.txt
curl -sSfL https://raw.githubusercontent.com/coinbase/mesh-cli/master/scripts/install.sh | sh -s -- -b "$HOME/.local/bin"
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Build
run: |
cd $GITHUB_WORKSPACE/cmd/rosetta && go build .
cd $GITHUB_WORKSPACE/systemtests && go build ./proxyToObserverAdapter.go
- name: check:data
run: |
python3 ./systemtests/check_with_mesh_cli.py --mode=data --network=testnet
env:
PYTHONPATH: .

0 comments on commit 4ba16fd

Please sign in to comment.