File tree Expand file tree Collapse file tree 1 file changed +25
-4
lines changed
Expand file tree Collapse file tree 1 file changed +25
-4
lines changed Original file line number Diff line number Diff line change 1- name : build-rust-projects
1+ name : build-and-test- rust-projects
22
33on :
44 merge_group :
77 pull_request :
88 branches : ["*"]
99 paths :
10- - ' batcher/**'
11- - ' .github/workflows/build-rust.yml'
10+ - " batcher/**"
11+ - " .github/workflows/build-rust.yml"
1212
1313jobs :
1414 build :
1515 runs-on : aligned-runner
16-
16+
1717 steps :
1818 - uses : actions/checkout@v4
1919
4545 run : |
4646 cd batcher
4747 cargo build --all
48+
49+ test :
50+ runs-on : ubuntu-latest
51+ needs : build
52+ steps :
53+ - name : Checkout code
54+ uses : actions/checkout@v4
55+ - name : Cache Rust dependencies
56+ uses : actions/cache@v3
57+ with :
58+ path : |
59+ ~/.cargo/registry
60+ ~/.cargo/git
61+ batcher/target
62+ key : ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}
63+ restore-keys : |
64+ ${{ runner.os }}-rust-
65+ - name : Run tests
66+ run : |
67+ cd batcher
68+ cargo test --all
You can’t perform that action at this time.
0 commit comments