Skip to content

Commit

Permalink
ci: set git config global in cross platform ci (#1754)
Browse files Browse the repository at this point in the history
* ci: set git config global in cross platform ci

* fix: flaky tests

* fix: use proper types
  • Loading branch information
mattsse committed May 28, 2022
1 parent 2127ecd commit af1a1a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/cross-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ jobs:
sudo apt-get install -y gcc-aarch64-linux-gnu
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
# required for forge commands that use git
- name: setup git config
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email "<>"
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
Expand Down
5 changes: 3 additions & 2 deletions cli/tests/it/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ forgetest!(can_extract_config_values, |prj: TestProject, mut cmd: TestCommand| {
block_number: 10,
fork_block_number: Some(200),
chain_id: Some(9999.into()),
gas_limit: 99_000_000.into(),
gas_limit: 99_000_000u64.into(),
gas_price: Some(999),
block_base_fee_per_gas: 10,
block_coinbase: Address::random(),
block_timestamp: 10,
block_difficulty: 10,
block_gas_limit: Some(100.into()),
block_gas_limit: Some(100u64.into()),
memory_limit: 2u64.pow(25),
eth_rpc_url: Some("localhost".to_string()),
etherscan_api_key: None,
Expand All @@ -93,6 +93,7 @@ forgetest!(can_extract_config_values, |prj: TestProject, mut cmd: TestCommand| {
bytecode_hash: Default::default(),
revert_strings: Some(RevertStrings::Strip),
sparse_mode: true,
allow_paths: vec![],
__non_exhaustive: (),
};
prj.write_config(input.clone());
Expand Down

0 comments on commit af1a1a1

Please sign in to comment.