Run a recent full block in the Hardhat Network #510
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 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/setup-node@v2 | |
with: | |
node-version: 16 | |
- uses: actions/checkout@v2 | |
- name: Install | |
run: yarn --frozen-lockfile | |
- name: Build | |
run: yarn build | |
- name: Run test | |
env: | |
ALCHEMY_URL: ${{ secrets.ALCHEMY_URL }} | |
run: yarn ts-node scripts/test-recent-mainnet-block.ts | |
- name: Notify failures | |
if: failure() | |
uses: slackapi/slack-github-action@v1.18.0 | |
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 }} |