From edf3ed97a89923b096907638411b5de69260f26c Mon Sep 17 00:00:00 2001 From: TomAFrench Date: Tue, 14 May 2024 17:38:59 +0000 Subject: [PATCH] chore(ci): push l1-contracts tests off of critical path --- .github/workflows/ci.yml | 12 ++++++++++++ l1-contracts/Earthfile | 9 +++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 59aeb83b1956..584567900f49 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -332,6 +332,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 diff --git a/l1-contracts/Earthfile b/l1-contracts/Earthfile index 57d0a1c8a519..2df4d56e48a9 100644 --- a/l1-contracts/Earthfile +++ b/l1-contracts/Earthfile @@ -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 \ No newline at end of file + 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