File tree 2 files changed +38
-9
lines changed
2 files changed +38
-9
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,20 +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 alloc
27
- - uses : actions-rs/cargo@v1
28
- with :
29
- command : test
30
- args : --verbose --no-default-features --features strict std
25
+ - name : Run Test Script
26
+ env : ${{ matrix.rust }}
27
+ run : ./contrib/test.sh
31
28
32
29
fmt :
33
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
+ # Sanity, build with no features.
19
+
20
+ cargo build --no-default-features --features=" strict"
21
+
22
+ # Check "alloc" feature alone.
23
+
24
+ cargo build --no-default-features --features=" strict std"
25
+ cargo test --no-default-features --features=" strict std"
26
+
27
+ # Check "std" feature (implies "alloc").
28
+
29
+ cargo build --no-default-features --features=" strict alloc"
30
+ cargo test --no-default-features --features=" strict alloc"
31
+
32
+ exit 0
You can’t perform that action at this time.
0 commit comments