Skip to content

Commit

Permalink
chore: run forge test in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
obatirou committed Sep 23, 2024
1 parent 8fa6718 commit 1f9a503
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,19 @@ jobs:
cp .env.example .env
make run-nodes & make test-end-to-end
forge-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install deps
run: forge install
- name: Run tests
run: forge test -vvv

ef-tests:
runs-on: ubuntu-latest-32-cores
needs: build
Expand Down
3 changes: 2 additions & 1 deletion solidity_contracts/tests/L1KakarotMessage.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import "forge-std/Test.sol";

import {L1KakarotMessaging} from "../src/L1L2Messaging/L1KakarotMessaging.sol";
import {StarknetMessagingLocal} from "../src/starknet/StarknetMessagingLocal.sol";
import {AddressAliasHelper} from "../src/L1L2Messaging/AddressAliasHelper.sol";

contract L1KakarotMessagingTest is Test {
L1KakarotMessaging l1KakarotMessaging;
Expand Down Expand Up @@ -34,7 +35,7 @@ contract L1KakarotMessagingTest is Test {

uint256 totalLength = data.length + 4;
uint256[] memory convertedData = new uint256[](totalLength);
convertedData[0] = uint256(uint160(address(this)));
convertedData[0] = uint256(uint160(AddressAliasHelper.applyL1ToL2Alias(address(this))));
convertedData[1] = uint256(uint160(to));
convertedData[2] = value;
convertedData[3] = data.length;
Expand Down

0 comments on commit 1f9a503

Please sign in to comment.