From 4b455833d6f9c1fdbde503594c336f63a1d0fecb Mon Sep 17 00:00:00 2001 From: Joshua Gutow Date: Thu, 9 Mar 2023 12:44:29 -0800 Subject: [PATCH] CI: Split contracts bedrock --- .circleci/config.yml | 52 +++++++++++++++++++++++++++++--------------- 1 file changed, 34 insertions(+), 18 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 28188f2684e6d..771fb2e15e016 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 @@ -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: | @@ -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 @@ -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 @@ -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