@@ -25,99 +25,84 @@ jobs:
2525 profile : default
2626 secrets : inherit
2727
28- doctest :
29- runs-on : ubuntu-22.04
30- timeout-minutes : 60
31- steps :
32- - uses : actions/checkout@v4
33- - uses : dtolnay/rust-toolchain@nightly
34- with :
35- toolchain : ${{ env.TARGET_RUST_VERSION }}
36- - uses : Swatinem/rust-cache@v2
37- with :
38- cache-on-failure : true
39- - name : cargo test
40- run : cargo test --doc -p forge
41-
42- clippy :
43- name : clippy
44- runs-on : ubuntu-22.04
45- timeout-minutes : 60
46- steps :
47- - uses : actions/checkout@v4
48- - uses : dtolnay/rust-toolchain@clippy
49- - uses : Swatinem/rust-cache@v2
50- with :
51- cache-on-failure : true
52- - run : cargo clippy --workspace --all-targets --all-features
53- env :
54- RUSTFLAGS : -Dwarnings
55-
56- rustfmt :
57- runs-on : ubuntu-22.04
58- timeout-minutes : 60
59- steps :
60- - uses : actions/checkout@v4
61- - uses : dtolnay/rust-toolchain@nightly
62- with :
63- toolchain : ${{ env.TARGET_RUST_VERSION }}
64- components : rustfmt
65- - run : cargo fmt --all --check
66-
67- forge-fmt :
68- runs-on : ubuntu-22.04
69- timeout-minutes : 60
70- steps :
71- - uses : actions/checkout@v4
72- - uses : dtolnay/rust-toolchain@nightly
73- with :
74- toolchain : ${{ env.TARGET_RUST_VERSION }}
75- - uses : Swatinem/rust-cache@v2
76- with :
77- cache-on-failure : true
78- - name : forge fmt
79- shell : bash
80- run : ./.github/scripts/format.sh --check
81-
82- codespell :
83- runs-on : ubuntu-22.04
84- timeout-minutes : 30
85- steps :
86- - uses : actions/checkout@v4
87- - uses : codespell-project/actions-codespell@v2
88- with :
89- skip : " *.json"
90-
91- crate-checks :
92- # ubuntu-22.04 runs out of disk space
93- runs-on : ubuntu-22.04-github-hosted-16core
94- timeout-minutes : 60
95- steps :
96- - uses : actions/checkout@v4
97- - uses : dtolnay/rust-toolchain@nightly
98- with :
99- toolchain : ${{ env.TARGET_RUST_VERSION }}
100- - uses : taiki-e/install-action@cargo-hack
101- - uses : Swatinem/rust-cache@v2
102- with :
103- cache-on-failure : true
104- - name : cargo hack
105- run : cargo hack check
106-
107- zk-cargo-test :
108- runs-on : ubuntu-22.04
109-
110- steps :
111- - name : Checkout code
112- uses : actions/checkout@v4
113- with :
114- submodules : recursive
115- ref : ${{ github.event.pull_request.head.sha }}
116-
117- - name : Install Rust
118- uses : actions-rust-lang/setup-rust-toolchain@v1
119- with :
120- toolchain : ${{ env.TARGET_RUST_VERSION }}
28+ doctest :
29+ runs-on : ubuntu-22.04
30+ timeout-minutes : 60
31+ steps :
32+ - uses : actions/checkout@v4
33+ - uses : dtolnay/rust-toolchain@nightly
34+ with :
35+ toolchain : ${{ env.TARGET_RUST_VERSION }}
36+ - uses : Swatinem/rust-cache@v2
37+ with :
38+ cache-on-failure : true
39+ - name : cargo test
40+ run : cargo test --doc -p forge
41+
42+ clippy :
43+ name : clippy
44+ runs-on : ubuntu-22.04
45+ timeout-minutes : 60
46+ steps :
47+ - uses : actions/checkout@v4
48+ - uses : dtolnay/rust-toolchain@clippy
49+ - uses : Swatinem/rust-cache@v2
50+ with :
51+ cache-on-failure : true
52+ - run : cargo clippy --workspace --all-targets --all-features
53+ env :
54+ RUSTFLAGS : -Dwarnings
55+
56+ rustfmt :
57+ runs-on : ubuntu-22.04
58+ timeout-minutes : 60
59+ steps :
60+ - uses : actions/checkout@v4
61+ - uses : dtolnay/rust-toolchain@nightly
62+ with :
63+ toolchain : ${{ env.TARGET_RUST_VERSION }}
64+ components : rustfmt
65+ - run : cargo fmt --all --check
66+
67+ forge-fmt :
68+ runs-on : ubuntu-22.04
69+ timeout-minutes : 60
70+ steps :
71+ - uses : actions/checkout@v4
72+ - uses : dtolnay/rust-toolchain@nightly
73+ with :
74+ toolchain : ${{ env.TARGET_RUST_VERSION }}
75+ - uses : Swatinem/rust-cache@v2
76+ with :
77+ cache-on-failure : true
78+ - name : forge fmt
79+ shell : bash
80+ run : ./.github/scripts/format.sh --check
81+
82+ codespell :
83+ runs-on : ubuntu-22.04
84+ timeout-minutes : 30
85+ steps :
86+ - uses : actions/checkout@v4
87+ - uses : codespell-project/actions-codespell@v2
88+ with :
89+ skip : " *.json"
90+
91+ crate-checks :
92+ # ubuntu-22.04 runs out of disk space
93+ runs-on : ubuntu-22.04-github-hosted-16core
94+ timeout-minutes : 60
95+ steps :
96+ - uses : actions/checkout@v4
97+ - uses : dtolnay/rust-toolchain@nightly
98+ with :
99+ toolchain : ${{ env.TARGET_RUST_VERSION }}
100+ - uses : taiki-e/install-action@cargo-hack
101+ - uses : Swatinem/rust-cache@v2
102+ with :
103+ cache-on-failure : true
104+ - name : cargo hack
105+ run : cargo hack check
121106
122107 zk-cargo-test :
123108 runs-on : ubuntu-22.04
@@ -146,11 +131,13 @@ jobs:
146131 logFilePath : anvil_zksync.log
147132 target : x86_64-unknown-linux-gnu
148133 releaseTag : v0.2.1
134+
149135 - name : Setup Git config
150136 run : |
151137 git config --global user.name "GitHub Actions Bot"
152138 git config --global user.email "<>"
153139 git config --global url."https://github.com/".insteadOf "[email protected] :" 140+
154141 - name : Run zk tests
155142 env :
156143 RUST_BACKTRACE : full
0 commit comments