Skip to content

Commit

Permalink
CI: Split contracts bedrock
Browse files Browse the repository at this point in the history
  • Loading branch information
trianglesphere committed Mar 9, 2023
1 parent 6b6eebe commit 4b45583
Showing 1 changed file with 34 additions and 18 deletions.
52 changes: 34 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,20 +269,6 @@ jobs:
- attach_workspace: { at: "." }
- check-changed:
patterns: contracts-bedrock,hardhat-deploy-config
- run:
name: lint
command: yarn lint:check
working_directory: packages/contracts-bedrock
- run:
name: slither
command: |
slither --version
yarn slither || exit 0
working_directory: packages/contracts-bedrock
- run:
name: print forge version
command: forge --version
working_directory: packages/contracts-bedrock
- run:
name: test and generate coverage
command: yarn coverage:lcov
Expand All @@ -295,6 +281,23 @@ jobs:
command: codecov --verbose --clean --flags contracts-bedrock-tests
environment:
FOUNDRY_PROFILE: ci

contracts-bedrock-checks:
docker:
- image: ethereumoptimism/ci-builder:latest
steps:
- checkout
- attach_workspace: { at: "." }
- run:
name: lint
command: yarn lint:check
working_directory: packages/contracts-bedrock
- run:
name: slither
command: |
slither --version
yarn slither || exit 0
working_directory: packages/contracts-bedrock
- run:
name: gas snapshot
command: |
Expand All @@ -303,10 +306,6 @@ jobs:
environment:
FOUNDRY_PROFILE: ci
working_directory: packages/contracts-bedrock
- run:
name: validate spacers
command: yarn validate-spacers
working_directory: packages/contracts-bedrock
- run:
name: storage snapshot
command: yarn storage-snapshot && git diff --exit-code .storage-layout
Expand All @@ -316,6 +315,17 @@ jobs:
command: yarn autogen:invariant-docs && git diff --exit-code ./invariant-docs/*.md
working_directory: packages/contracts-bedrock

contracts-bedrock-validate-spaces:
docker:
- image: ethereumoptimism/ci-builder:latest
steps:
- checkout
- attach_workspace: { at: "." }
- run:
name: validate spacers
command: yarn validate-spacers
working_directory: packages/contracts-bedrock

bedrock-echidna-build:
docker:
- image: ethereumoptimism/ci-builder:latest
Expand Down Expand Up @@ -893,6 +903,12 @@ workflows:
- contracts-bedrock-tests:
requires:
- yarn-monorepo
- contracts-bedrock-checks:
requires:
- yarn-monorepo
- contracts-bedrock-validate-spaces:
requires:
- yarn-monorepo
- op-bindings-build:
requires:
- yarn-monorepo
Expand Down

0 comments on commit 4b45583

Please sign in to comment.