Skip to content

Feat/sealed bid auction/only accept prices from connected solvers #1243

Feat/sealed bid auction/only accept prices from connected solvers

Feat/sealed bid auction/only accept prices from connected solvers #1243

Workflow file for this run

name: "Contracts"
env:
FOUNDRY_PROFILE: "ci"
on:
workflow_dispatch:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
push:
branches:
- "canary"
jobs:
lint:
name: lint
runs-on: "ubuntu-latest"
steps:
- name: "Check out the repo"
uses: "actions/checkout@v4"
- name: Install dependencies
uses: ./.github/actions/install_dependencies
- name: "Lint the code"
working-directory: "contracts"
run: "bun run lint"
- name: "Add lint summary"
run: |
echo "## Lint result" >> $GITHUB_STEP_SUMMARY
echo "βœ… Passed" >> $GITHUB_STEP_SUMMARY
build:
name: build
runs-on: "ubuntu-latest"
steps:
- name: "Check out the repo"
uses: "actions/checkout@v4"
- name: Install dependencies
uses: ./.github/actions/install_dependencies
- name: "Build the contracts and print their size"
working-directory: "contracts"
run: "bun run build -- --sizes"
- name: "Add build summary"
run: |
echo "## Build result" >> $GITHUB_STEP_SUMMARY
echo "βœ… Passed" >> $GITHUB_STEP_SUMMARY
test:
name: test
needs: ["lint", "build"]
runs-on: "ubuntu-latest"
env:
ARBITRUM_RPC: ${{ secrets.ARBITRUM_RPC }}
ARBITRUM_BLOCK: ${{ secrets.ARBITRUM_BLOCK }}
steps:
- name: "Check out the repo"
uses: "actions/checkout@v4"
- name: Install dependencies
uses: ./.github/actions/install_dependencies
- name: "Show the Foundry config"
working-directory: "contracts"
run: "forge config"
- name: "Generate a fuzz seed that changes weekly to avoid burning through RPC allowance"
run: >
echo "FOUNDRY_FUZZ_SEED=$(
echo $(($EPOCHSECONDS - $EPOCHSECONDS % 604800)) )" >> $GITHUB_ENV
- name: "Run the tests"
working-directory: "contracts"
run: "bun run test"
- name: "Add test summary"
run: |
echo "## Tests result" >> $GITHUB_STEP_SUMMARY
echo "βœ… Passed" >> $GITHUB_STEP_SUMMARY