Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1257,6 +1257,18 @@ jobs:
when: on_fail
- notify-failures-on-develop

contracts-bedrock-upload:
machine: true
resource_class: ethereum-optimism/latitude-1
steps:
- check-changed:
patterns: contracts-bedrock
- get-target-branch
- run:
name: upload selectors
command: just update-selectors
working_directory: packages/contracts-bedrock

contracts-bedrock-checks:
docker:
- image: <<pipeline.parameters.default_docker_image>>
Expand Down Expand Up @@ -2597,6 +2609,11 @@ workflows:
- contracts-bedrock-build
context:
- circleci-repo-readonly-authenticated-github-token
- contracts-bedrock-upload:
requires:
- contracts-bedrock-build
context:
- circleci-repo-readonly-authenticated-github-token
- diff-fetcher-forge-artifacts:
context:
- circleci-repo-readonly-authenticated-github-token
Expand Down
5 changes: 5 additions & 0 deletions packages/contracts-bedrock/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,10 @@ lint-forge-tests-check: build lint-forge-tests-check-no-build
lint-check:
forge fmt --check

# Updates the selectors for the contracts
update-selectors:
forge selectors up --all

# Checks for unused imports in Solidity contracts. Does not build contracts.
unused-imports-check-no-build:
go run ./scripts/checks/unused-imports
Expand Down Expand Up @@ -380,6 +384,7 @@ pre-pr *ARGS:
just build-source
just check


# Restore build artifacts after running checks.
if [ -d "$TEMP_BUILD_DIR" ]; then
cp -r "$TEMP_BUILD_DIR/artifacts" ./
Expand Down
Loading