Run a recent full block in the Hardhat Network #661
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: Run a recent full block in the Hardhat Network | |
on: | |
schedule: | |
- cron: "0 */8 * * *" | |
workflow_dispatch: | |
jobs: | |
test-recent-mainnet-block: | |
name: Test recent mainnet block | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/setup-rust | |
- name: Cache EDR RPC cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
**/edr-cache | |
key: test-recent-mainnet-block-rpc-cache-v1 | |
- run: cargo replay-block -u ${{ secrets.ALCHEMY_URL }} -c 1 | |
- name: Notify failures | |
if: failure() | |
uses: slackapi/[email protected] | |
with: | |
payload: | | |
{ | |
"workflow_name": "${{ github.workflow }}", | |
"run_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" | |
} | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.GH_ACTION_NOTIFICATIONS_SLACK_WEBHOOK_URL }} |