Skip to content

chore: remove unchecked and inc to 0.8.23 #95

chore: remove unchecked and inc to 0.8.23

chore: remove unchecked and inc to 0.8.23 #95

Workflow file for this run

name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
tests:
name: Forge Testing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: foundry-rs/foundry-toolchain@v1
with:
cache: false
version: nightly
- uses: cardinalby/export-env-action@v2
with:
envFile: 'constants.env'
- name: dependencies
run: forge install
- name: tests
run: forge test -vvv
env:
# make fuzzing semi-deterministic to avoid noisy gas cost estimation
# due to non-deterministic fuzzing (but still use pseudo-random fuzzing seeds)
FOUNDRY_FUZZ_SEED: 0x${{ github.event.pull_request.base.sha || github.sha }}
BSC_RPC_URL: ${{ secrets.BSC_RPC_URL }}
ARBITRUM_RPC_URL: ${{ secrets.ARBITRUM_RPC_URL }}
OPTIMISM_RPC_URL: ${{ secrets.OPTIMISM_RPC_URL }}
ETHEREUM_RPC_URL: ${{ secrets.ETHEREUM_RPC_URL }}
POLYGON_RPC_URL: ${{ secrets.POLYGON_RPC_URL }}
AVALANCHE_RPC_URL: ${{ secrets.AVALANCHE_RPC_URL }}
FANTOM_RPC_URL: ${{ secrets.FANTOM_RPC_URL }}
# snapshot:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: recursive
# - uses: foundry-rs/foundry-toolchain@v1
# with:
# version: nightly
# - uses: cardinalby/export-env-action@v2
# with:
# envFile: 'constants.env'
# - name: dependencies
# run: forge install
# - name: check contract sizes
# run: forge build --sizes
# - name: check gas snapshots
# run: forge snapshot --check
# env:
# make fuzzing semi-deterministic to avoid noisy gas cost estimation
# due to non-deterministic fuzzing (but still use pseudo-random fuzzing seeds)
# FOUNDRY_FUZZ_SEED: 0x${{ github.event.pull_request.base.sha || github.sha }}
# BSC_RPC_URL: ${{ secrets.BSC_RPC_URL }}
# ARBITRUM_RPC_URL: ${{ secrets.ARBITRUM_RPC_URL }}
# OPTIMISM_RPC_URL: ${{ secrets.OPTIMISM_RPC_URL }}
# ETHEREUM_RPC_URL: ${{ secrets.ETHEREUM_RPC_URL }}
# POLYGON_RPC_URL: ${{ secrets.POLYGON_RPC_URL }}
# AVALANCHE_RPC_URL: ${{ secrets.AVALANCHE_RPC_URL }}
# FANTOM_RPC_URL: ${{ secrets.FANTOM_RPC_URL }}
slither:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Slither
uses: crytic/[email protected]
id: slither
with:
slither-args: '--exclude-low --exclude-medium --no-fail-pedantic --exclude-optimization --exclude-informational --filter-paths mock,interfaces,lib,test --json-types console,detectors'
sarif: results.sarif
fail-on: none
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ${{ steps.slither.outputs.sarif }}