Commit b74ca8c 1 parent 364bd18 commit b74ca8c Copy full SHA for b74ca8c
File tree 2 files changed +59
-1
lines changed
2 files changed +59
-1
lines changed Original file line number Diff line number Diff line change
1
+ on : [push, pull_request]
2
+
3
+ name : Tests and linting
4
+
5
+ jobs :
6
+ test :
7
+ name : Test Suite
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - uses : actions/checkout@v2
11
+ - uses : actions/cache@v2
12
+ with :
13
+ path : |
14
+ ~/.cargo/bin/
15
+ ~/.cargo/registry/index/
16
+ ~/.cargo/registry/cache/
17
+ ~/.cargo/git/db/
18
+ target/
19
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
20
+ - uses : actions-rs/toolchain@v1
21
+ with :
22
+ toolchain : stable
23
+ - uses : actions-rs/cargo@v1
24
+ with :
25
+ command : test
26
+ args : --all-features
27
+ - uses : actions-rs/cargo@v1 # we also test without the default `read-url` feature
28
+ with :
29
+ command : test
30
+ args : --no-default-features
31
+
32
+ lints :
33
+ name : Lints
34
+ runs-on : ubuntu-latest
35
+ steps :
36
+ - name : Checkout sources
37
+ uses : actions/checkout@v2
38
+
39
+ - name : Install stable toolchain
40
+ uses : actions-rs/toolchain@v1
41
+ with :
42
+ profile : minimal
43
+ toolchain : stable
44
+ components : rustfmt, clippy
45
+
46
+ - name : Run cargo fmt
47
+ uses : actions-rs/cargo@v1
48
+ with :
49
+ command : fmt
50
+ args : --all -- --check
51
+
52
+ - name : Run cargo clippy
53
+ uses : actions-rs/cargo@v1
54
+ with :
55
+ command : clippy
56
+ args : -- -D warnings
Original file line number Diff line number Diff line change 1
1
extern crate flatbuffers;
2
2
3
+ #[ allow( unused_imports) ]
4
+ #[ allow( clippy:: all) ]
3
5
mod lrs_generated;
4
6
5
- use flatbuffers:: WIPOffset ;
6
7
pub use lrs_generated:: * ;
7
8
8
9
#[ test]
9
10
fn read_and_write_lrs ( ) {
11
+ use flatbuffers:: WIPOffset ;
10
12
let mut fbb = flatbuffers:: FlatBufferBuilder :: with_capacity ( 1024 ) ;
11
13
let property = PropertyArgs {
12
14
key : Some ( fbb. create_string ( "some key" ) ) ,
You can’t perform that action at this time.
0 commit comments