File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change 1010 - ' rust/**'
1111
1212jobs :
13- # TODO: Cargo test (we would need to pull in binary ninja)
13+ # Check that code compiles and tests pass
14+ test :
15+ # The testing environment is used to access the BN_SERIAL secret.
16+ environment : testing
17+ name : cargo test
18+ runs-on : ubuntu-latest
19+ steps :
20+ - uses : actions/checkout@v4
21+ # Pull in Binary Ninja
22+ - name : Setup Binary Ninja
23+ uses : Vector35/setup-binary-ninja@v1-beta
24+ with :
25+ license : ' ${{ secrets.BN_SERIAL }}'
26+ python-support : ' false'
27+ - uses : actions-rust-lang/setup-rust-toolchain@v1
28+ - name : Test
29+ # For now, we run the tests single threaded, there are some data races in core around platform types
30+ run : cargo test --all-features -- --test-threads=1
31+
1432 # Check lints with clippy
1533 clippy :
1634 name : cargo clippy
2442 - name : Clippy Check
2543 uses : clechasseur/rs-clippy-check@v4
2644 with :
45+ # We do not run clippy on plugins.
2746 working-directory : ./rust
2847 args : --all-features
2948
3958 components : rustfmt
4059 - name : Rustfmt Check
4160 uses : actions-rust-lang/rustfmt@v1
42- with :
43- manifest-path : ./rust/Cargo.toml
4461
4562 # Check spelling with typos
4663 spelling :
You can’t perform that action at this time.
0 commit comments