diff --git a/.env.example b/.env.example index 8016f33..b725086 100644 --- a/.env.example +++ b/.env.example @@ -2,7 +2,7 @@ export FOUNDRY_SCRIPT_DEPS=deployed export FOUNDRY_EXPORTS_OVERWRITE_LATEST=true export L1="sepolia" export L2="arbitrum_one_sepolia" -export ETH_RPC_URL= +export MAINNET_RPC_URL= export ARBITRUM_ONE_RPC_URL= export SEPOLIA_RPC_URL= export ARBITRUM_ONE_SEPOLIA_RPC_URL= diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..fd09b9d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,37 @@ +name: test + +on: [push, pull_request] + +env: + FOUNDRY_PROFILE: ci + +jobs: + check: + strategy: + fail-fast: true + + name: Foundry project + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + with: + version: nightly + + - name: Run Forge build + run: | + forge --version + forge build --sizes + id: build + + - name: Run Forge tests + run: | + forge test -vvv + id: test + env: + MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }} + ARBITRUM_ONE_RPC_URL: ${{ secrets.ARBITRUM_ONE_RPC_URL }}