File tree 1 file changed +15
-9
lines changed
1 file changed +15
-9
lines changed Original file line number Diff line number Diff line change 11
11
RUSTFLAGS : -Dwarnings
12
12
13
13
jobs :
14
- lint :
14
+ ci :
15
15
runs-on : ubuntu-latest
16
16
steps :
17
17
- uses : actions/checkout@v4
18
- - run : cargo clippy --all-targets --all-features
19
18
20
- test :
21
- runs-on : ubuntu-latest
22
- steps :
23
- - uses : actions/checkout@v4
24
- - name : Run tests
19
+ # TODO: Tighter cache control.
20
+ - uses : actions/cache@v4
21
+ with :
22
+ path : |
23
+ ~/.cargo
24
+ ./target
25
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
26
+
27
+ - name : Lint
28
+ run : cargo clippy --all-targets --all-features
29
+
30
+ - name : Test
25
31
env :
26
32
RPC_URL : ${{ secrets.RPC_URL }}
27
- # Our tests are heavy, avoid running them in parallel to not risk nuking RAM .
28
- # Each parallel test still executes parallelly up to the number of CPUs anyway.
33
+ # Running our heavy tests simultaneously would congest resources .
34
+ # Each parallel test still executes parallelly anyway.
29
35
run : |
30
36
git submodule update --init
31
37
cargo test --release -- --test-threads=1
You can’t perform that action at this time.
0 commit comments