File tree Expand file tree Collapse file tree 2 files changed +97
-2
lines changed Expand file tree Collapse file tree 2 files changed +97
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : ' CI'
2
+ on :
3
+ pull_request :
4
+ push :
5
+ branches :
6
+ - master
7
+
8
+ env :
9
+ RUST_BACKTRACE : 1
10
+ CARGO_TERM_COLOR : always
11
+
12
+ jobs :
13
+ ci-pass :
14
+ name : CI is green
15
+ runs-on : ubuntu-latest
16
+ needs :
17
+ - test-linux
18
+ - test-windows
19
+ - test-macos
20
+ - build-extra
21
+ - lint
22
+ steps :
23
+ - run : exit 0
24
+
25
+ test-linux :
26
+ runs-on : ubuntu-latest
27
+
28
+ steps :
29
+ - uses : actions/checkout@v3
30
+ - uses : dtolnay/rust-toolchain@stable
31
+ with :
32
+ components : rustfmt
33
+ - name : Run tests
34
+ run : |
35
+ cargo check
36
+ cargo test
37
+
38
+ test-windows :
39
+ runs-on : windows-latest
40
+
41
+ steps :
42
+ - uses : actions/checkout@v3
43
+ - uses : dtolnay/rust-toolchain@stable
44
+ with :
45
+ components : rustfmt
46
+ - name : Run tests
47
+ run : |
48
+ cargo check
49
+ cargo test
50
+
51
+ test-macos :
52
+ runs-on : macos-latest
53
+
54
+ steps :
55
+ - uses : actions/checkout@v3
56
+ - uses : dtolnay/rust-toolchain@stable
57
+ with :
58
+ components : rustfmt
59
+ - name : Run tests
60
+ run : |
61
+ cargo check
62
+ cargo test
63
+
64
+ build-extra :
65
+ runs-on : ubuntu-latest
66
+
67
+ steps :
68
+ - uses : actions/checkout@v3
69
+ - uses : dtolnay/rust-toolchain@stable
70
+ with :
71
+ targets : wasm32-unknown-unknown
72
+ - name : Build WASM
73
+ run : |
74
+ cargo build --target=wasm32-unknown-unknown
75
+ - name : Build benches
76
+ run : |
77
+ cargo build --benches
78
+ - name : Build release
79
+ run : |
80
+ cargo build --release
81
+
82
+ lint :
83
+ runs-on : ubuntu-latest
84
+
85
+ steps :
86
+ - uses : actions/checkout@v3
87
+ - uses : dtolnay/rust-toolchain@stable
88
+ with :
89
+ components : rustfmt, clippy
90
+ - uses : actions-rs/clippy-check@v1
91
+ with :
92
+ token : ${{ secrets.GITHUB_TOKEN }}
93
+ - name : Format check
94
+ run : |
95
+ cargo fmt -- --check
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ $ cargo add random-access-storage
20
20
21
21
[ 1 ] : https://img.shields.io/crates/v/random-access-storage.svg?style=flat-square
22
22
[ 2 ] : https://crates.io/crate/random-access-storage
23
- [ 3 ] : https://img.shields.io/travis/ datrs/random-access-storage. svg?style=flat-square
24
- [ 4 ] : https://travis-ci.org /datrs/random-access-storage
23
+ [ 3 ] : https://github.com/ datrs/random-access-storage/actions/workflows/ci.yml/badge. svg
24
+ [ 4 ] : https://github.com /datrs/random-access-storage/actions
25
25
[ 5 ] : https://img.shields.io/crates/d/random-access-storage.svg?style=flat-square
26
26
[ 6 ] : https://crates.io/crates/random-access-storage
27
27
[ 7 ] : https://docs.rs/random-access-storage/badge.svg
You can’t perform that action at this time.
0 commit comments