Skip to content

Run a recent full block in the Hardhat Network #629

Run a recent full block in the Hardhat Network

Run a recent full block in the Hardhat Network #629

name: Run a recent full block in the Hardhat Network
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
defaults:
run:
working-directory: packages/hardhat-core
jobs:
test-recent-mainnet-block:
name: Test recent mainnet block
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v2
with:
node-version: 16
cache: "pnpm"
- name: Install
run: pnpm install --frozen-lockfile --prefer-offline
- name: Build
run: pnpm build
- name: Run test
env:
ALCHEMY_URL: ${{ secrets.ALCHEMY_URL }}
run: pnpm ts-node scripts/test-recent-mainnet-block.ts
- 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 }}