Health #43745
This file contains hidden or 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: Health | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 */2 * * *' # every 2 hours | |
| jobs: | |
| test: | |
| name: Health Checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out the repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'pnpm' | |
| - name: Tune GitHub-hosted runner network | |
| uses: smorimoto/tune-github-hosted-runner-network@v1 | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: v1.3.5 # stable version 09.09.2025 | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build | |
| run: pnpm build | |
| - name: Setup tenderly | |
| run: | | |
| mkdir ~/.tenderly | |
| touch ~/.tenderly/config.yaml | |
| echo "access_key: $TENDERLY_ACCESS_KEY" >> ~/.tenderly/config.yaml | |
| env: | |
| TENDERLY_ACCESS_KEY: ${{ secrets.TENDERLY_ACCESS_KEY }} | |
| - name: Test deployment and network health | |
| run: pnpm test:health | |
| env: | |
| TENDERLY_PROJECT: carbon-temp-forks | |
| TENDERLY_TEST_PROJECT: carbon-temp-forks | |
| TENDERLY_USERNAME: bancor | |
| TENDERLY_ACCESS_KEY: ${{ secrets.TENDERLY_ACCESS_KEY }} |