-
Notifications
You must be signed in to change notification settings - Fork 1.5k
43 lines (40 loc) · 1.17 KB
/
test-recent-mainnet-block.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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 }}