Skip to content

feat: check roles cron #10

feat: check roles cron

feat: check roles cron #10

Workflow file for this run

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: Setup repo
uses: ./.github/actions/setup-repo
with:
registry-token: ${{ secrets.GH_REGISTRY_ACCESS_TOKEN }}
- 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_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 }}