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
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,18 @@ jobs:
timeout-minutes: 25
run: earthly-ci --no-output ./+barretenberg-acir-tests-bb.js

l1-contracts-test:
needs: setup
runs-on: ${{ github.event.pull_request.user.login || github.actor }}-x86
steps:
- uses: actions/checkout@v4
with: { ref: "${{ env.GIT_COMMIT }}" }
- uses: ./.github/ci-setup-action
with:
concurrency_key: l1-contracts-${{ github.event.pull_request.user.login || github.actor }}-x86
- name: "Test l1 contracts"
run: earthly-ci --no-output ./l1-contracts+test

docs-preview:
needs: build
runs-on: ${{ github.event.pull_request.user.login || github.actor }}-x86
Expand Down
9 changes: 7 additions & 2 deletions l1-contracts/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,10 @@ build:
# "slither": "forge clean && forge build --build-info --skip '*/test/**' --force && slither . --checklist --ignore-compile --show-ignored-findings --config-file ./slither.config.json | tee slither_output.md",
# "slither-has-diff": "./slither_has_diff.sh"
RUN solhint --config ./.solhint.json --fix "src/**/*.sol"
RUN forge clean && forge fmt --check && forge build && forge test --no-match-contract UniswapPortalTest
SAVE ARTIFACT /usr/src/l1-contracts /usr/src/l1-contracts
RUN forge clean && forge fmt --check
RUN forge build
SAVE ARTIFACT /usr/src/l1-contracts /usr/src/l1-contracts

test:
FROM +build
RUN forge test --no-match-contract UniswapPortalTest