automated test for bootnodes && endpoints #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Daily endpoint validity test | |
on: | |
schedule: | |
- cron: '0 8 * * *' # Runs at 8AM UTC every day | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
test_endpoints: | |
runs-on: ubuntu-latest | |
container: | |
image: ubuntu:latest | |
steps: | |
- name: workaround to for Act(https://github.com/nektos/act/issues/107) | |
if: ${{ env.ACT }} | |
run: | | |
apt-get update && apt-get install sudo -y | |
- name: Install dependencies | |
run: | | |
apt-get update | |
apt-get install curl jq build-essential pkg-config libssl-dev -y | |
curl -fsSL https://deb.nodesource.com/setup_16.x | bash - | |
apt-get install -y nodejs | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- run: | | |
cd scripts/gavel | |
cargo build --release --locked | |
- run: bash ./scripts/test_endpoints.sh | |
- run: bash ./scripts/missing_endpoints.sh | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: endpoint-test-results | |
path: /tmp/endpoint_tests/results.json |