-
Notifications
You must be signed in to change notification settings - Fork 41
59 lines (47 loc) · 1.4 KB
/
health.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Health
on:
workflow_dispatch:
schedule:
- cron: '*/30 * * * *' # every 30 minutes
jobs:
test:
name: Health Checks
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 8
- 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: nightly
- 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 }}