Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

ci/test: improve CI jobs and tests #2189

Merged
merged 69 commits into from
Mar 1, 2023
Merged
Changes from 1 commit
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
70f3b83
ci: move to scripts directory
DaniPopes Feb 24, 2023
f7963d0
nits
DaniPopes Feb 24, 2023
50a4b2a
ci: improve main CI jobs
DaniPopes Feb 24, 2023
f805e8a
fix: install script
DaniPopes Feb 24, 2023
362de60
fix
DaniPopes Feb 24, 2023
8ae67b4
fix: use curl for windows installation
DaniPopes Feb 24, 2023
0d14b4c
fix: wasm typo
DaniPopes Feb 24, 2023
5f2de7b
tests: move to single binary
DaniPopes Feb 24, 2023
376b8ce
chore: clippy
DaniPopes Feb 24, 2023
9e33478
chore: clippy
DaniPopes Feb 24, 2023
f8696c2
chore: clippy
DaniPopes Feb 24, 2023
dcd1ef2
fix: test command
DaniPopes Feb 24, 2023
e06fcd4
fix: quote tests
DaniPopes Feb 24, 2023
7a88c65
update script
DaniPopes Feb 24, 2023
49c7b24
fix: action exclude
DaniPopes Feb 24, 2023
017db8b
fix: dev deps
DaniPopes Feb 24, 2023
8c0cb71
fix: only run wasm in own job
DaniPopes Feb 24, 2023
75f63f9
ci: add aarch64 targets
DaniPopes Feb 24, 2023
5f32e98
test: rm useless test
DaniPopes Feb 24, 2023
2187353
ci: update security audit
DaniPopes Feb 24, 2023
4cee892
ci: add deny CI
DaniPopes Feb 24, 2023
5ca9864
chore: rm unused audit.toml
DaniPopes Feb 24, 2023
e0e7876
chore: update geth.rs
DaniPopes Feb 24, 2023
504b77c
ci: remove unusable targets
DaniPopes Feb 24, 2023
f7e02ba
fix: install script path
DaniPopes Feb 24, 2023
5a1d97a
fix: wasm
DaniPopes Feb 24, 2023
3d4820d
improve script
DaniPopes Feb 24, 2023
c3748e9
Merge branch 'master' into ci/improve
DaniPopes Feb 25, 2023
58ce0e1
fix: failing ci
DaniPopes Feb 25, 2023
ec0cf0e
fix: contract tests
DaniPopes Feb 25, 2023
e0a46a3
ci: improve install script
DaniPopes Feb 25, 2023
3eb7430
update middleware tests
DaniPopes Feb 25, 2023
260559a
move integration etherscan tests to tests/ dir
DaniPopes Feb 25, 2023
2840b73
fix: eip2930 access_list field name
DaniPopes Feb 25, 2023
770b21b
add pendingtransaction must_use
DaniPopes Feb 25, 2023
902d697
add random anvil comment
DaniPopes Feb 25, 2023
6d1723c
ci: add miri job
DaniPopes Feb 25, 2023
8b8d723
ci: simplify
DaniPopes Feb 25, 2023
cc8a1d9
fixci
DaniPopes Feb 25, 2023
e985770
Revert "add pendingtransaction must_use"
DaniPopes Feb 25, 2023
f79afc7
fix: macos script
DaniPopes Feb 25, 2023
0299987
fix: use curl in script
DaniPopes Feb 25, 2023
14804a5
unused ci
DaniPopes Feb 25, 2023
5e36c18
update script
DaniPopes Feb 26, 2023
5ef4ecb
fix wasm
DaniPopes Feb 27, 2023
197c541
rm_miri
DaniPopes Feb 27, 2023
48a931d
fix: signer test
DaniPopes Feb 27, 2023
44c4285
fix: wasm ci
DaniPopes Feb 27, 2023
9433618
fix: ipc test
DaniPopes Feb 27, 2023
fd3c25f
fix: live celo tests
DaniPopes Feb 27, 2023
399b7ef
fix: abi online source test
DaniPopes Feb 27, 2023
314bbef
fix: windows paths in test
DaniPopes Feb 27, 2023
1729001
chore: update serial_test
DaniPopes Feb 27, 2023
cdd9d84
ci: run live tests separately
DaniPopes Feb 27, 2023
7595146
fix: provider tests
DaniPopes Feb 27, 2023
5d319d5
Merge branch 'master' into ci/improve
DaniPopes Feb 27, 2023
d934e16
fix: unused var
DaniPopes Feb 27, 2023
2b07891
fix: feature
DaniPopes Feb 27, 2023
ee30fda
fix merge
DaniPopes Feb 27, 2023
b55423c
fix: etherscan key tests
DaniPopes Feb 27, 2023
0714817
ci: rm duplicate audit
DaniPopes Feb 27, 2023
d78c2f1
fix: split etherscan test ci
DaniPopes Feb 27, 2023
8536eae
Merge branch 'master' into ci/improve
DaniPopes Feb 27, 2023
b1d7c47
fix: etherscan test
DaniPopes Feb 27, 2023
8c06409
fix: generate multiple unused ports
DaniPopes Feb 28, 2023
5aea513
Merge branch 'master' into ci/improve
DaniPopes Feb 28, 2023
70a8aa7
fix: source test
DaniPopes Feb 28, 2023
990c178
fix: udeps
DaniPopes Feb 28, 2023
afbb71e
rm unused
DaniPopes Mar 1, 2023
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
Prev Previous commit
Next Next commit
fix: split etherscan test ci
DaniPopes committed Feb 27, 2023

Verified

This commit was signed with the committer’s verified signature.
commit d78c2f1ae0c33e3f269f8344be198902451914dd
33 changes: 28 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ env:
GOERLI_PRIVATE_KEY: "fa4a1a79e869a96fcb42727f75e3232d6865a82ea675bb95de967a7fe6a773b2"
GETH_BUILD: "1.11.2-73b01f40"
SOLC_VERSION: "0.8.19"
RUSTFLAGS: "-D warnings"
CARGO_TERM_COLOR: always

jobs:
test:
@@ -43,12 +43,32 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: test
shell: bash
run: cargo nextest run ${{ matrix.flags }} -E "!binary(~live)"
# skip `ethers_etherscan::it` and `ethers::live`
run: |
cargo nextest run \
${{ matrix.flags }} \
-E "!binary(~live) & !(deps(ethers-etherscan) & kind(test))"
etherscan-tests:
name: etherscan tests
runs-on: ubuntu-latest
concurrency: etherscan-tests-${{ github.head_ref || github.run_id }}
# Run after main tests are done to avoid rate limiting,
# regardless of whether they were successful
if: ${{ always() }}
needs: test
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
# Don't use cargo-nextest since all the tests have to be ran sequentially
- name: live tests
run: cargo test -p ethers-etherscan --test it

live-tests:
name: live tests
runs-on: ubuntu-latest
concurrency: ${{ github.head_ref || github.run_id }}
concurrency: live-tests-${{ github.head_ref || github.run_id }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
@@ -80,6 +100,8 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: clippy
run: cargo clippy --workspace --tests --all-features
env:
RUSTFLAGS: "-D warnings"

docs:
name: docs
@@ -93,8 +115,8 @@ jobs:
- name: doc
run: cargo doc --workspace --all-features --no-deps --document-private-items
env:
RUSTFLAGS: --cfg docsrs
RUSTDOCFLAGS: --cfg docsrs
RUSTFLAGS: "--cfg docsrs"
RUSTDOCFLAGS: "--cfg docsrs -D warnings"

fmt:
name: fmt
@@ -143,6 +165,7 @@ jobs:
examples:
name: Examples
runs-on: ubuntu-latest
concurrency: examples-${{ github.head_ref || github.run_id }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable