File tree 2 files changed +43
-13
lines changed
2 files changed +43
-13
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ on: [pull_request]
4
4
name : Continuous Integration
5
5
6
6
jobs :
7
- test :
7
+ Test :
8
8
name : Test Suite
9
9
runs-on : ubuntu-latest
10
10
strategy :
@@ -14,24 +14,17 @@ jobs:
14
14
- stable
15
15
- nightly
16
16
steps :
17
+ - name : Checkout Crate
17
18
- uses : actions/checkout@v2
19
+ - name : Checkout Toolchain
18
20
- uses : actions-rs/toolchain@v1
19
21
with :
20
22
profile : minimal
21
23
toolchain : ${{ matrix.rust }}
22
24
override : true
23
- - uses : actions-rs/cargo@v1
24
- with :
25
- command : test
26
- args : --verbose --no-default-features --features strict
27
- - uses : actions-rs/cargo@v1
28
- with :
29
- command : test
30
- args : --verbose --no-default-features --features strict std
31
- - uses : actions-rs/cargo@v1
32
- with :
33
- command : test
34
- args : --verbose --no-default-features --features strict alloc
25
+ - name : Run Test Script
26
+ env : ${{ matrix.rust }}
27
+ run : ./contrib/test.sh
35
28
36
29
fmt :
37
30
name : Rustfmt
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ #
3
+ # CI test script for rust-bech32.
4
+ #
5
+ # The "strict" feature is used to configure cargo to deny all warnings, always use it in test runs.
6
+
7
+ set -ex
8
+
9
+ # Sanity, check tools exist.
10
+ cargo --version
11
+ rustc --version
12
+
13
+ # Sanity, first check with default features.
14
+
15
+ cargo build
16
+ cargo test
17
+
18
+ # Check with no features.
19
+
20
+ cargo build --no-default-features --features=" strict"
21
+ cargo test --no-default-features --features=" strict"
22
+
23
+ # Check each feature individually.
24
+
25
+ cargo build --no-default-features --features=" strict std"
26
+ cargo test --no-default-features --features=" strict std"
27
+
28
+ cargo build --no-default-features --features=" strict alloc"
29
+ cargo test --no-default-features --features=" strict alloc"
30
+
31
+ # Check all the features together.
32
+
33
+ cargo build --no-default-features --features=" strict alloc std"
34
+ cargo test --no-default-features --features=" strict alloc std"
35
+
36
+ exit 0
37
+
You can’t perform that action at this time.
0 commit comments