generated from AngleProtocol/boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 4
58 lines (49 loc) · 1.67 KB
/
check-roles.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
name: "check-roles"
env:
FOUNDRY_PROFILE: "ci"
on:
pull_request:
schedule:
- cron: "0 0 * * *" # every day at midnight
jobs:
check-roles:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
max-parallel: 2
matrix:
chain: [1]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install dependencies
run: yarn install
- name: Compile
run: forge build
- name: generate roles files
run: forge script CheckRoles
env:
ETH_NODE_URI_MAINNET: "https://eth.llamarpc.com"
ETH_NODE_URI_ARBITRUM: ${{ secrets.ETH_NODE_URI_ARBITRUM }}
ETH_NODE_URI_AVALANCHE: ${{ secrets.ETH_NODE_URI_AVALANCHE }}
ETH_NODE_URI_ETHEREUM: ${{ secrets.ETH_NODE_URI_ETHEREUM }}
ETH_NODE_URI_OPTIMISM: ${{ secrets.ETH_NODE_URI_OPTIMISM }}
ETH_NODE_URI_POLYGON: ${{ secrets.ETH_NODE_URI_POLYGON }}
ETH_NODE_URI_GNOSIS: ${{ secrets.ETH_NODE_URI_GNOSIS }}
ETH_NODE_URI_BSC: ${{ secrets.ETH_NODE_URI_BSC }}
ETH_NODE_URI_CELO: ${{ secrets.ETH_NODE_URI_CELO }}
ETH_NODE_URI_POLYGON_ZKEVM: ${{ secrets.ETH_NODE_URI_POLYGON_ZKEVM }}
ETH_NODE_URI_BASE: ${{ secrets.ETH_NODE_URI_BASE }}
ETH_NODE_URI_LINEA: ${{ secrets.ETH_NODE_URI_LINEA }}
CHAIN_IDS: ${{ matrix.chain }}
- name: Run script
run: yarn check-roles
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}