1- on : [push, pull_request]
1+ --- # rust-bitcoincore-rpc CI: If you edit this file please update README.md
2+ on : # yamllint disable-line rule:truthy
3+ push :
4+ branches :
5+ - master
6+ - ' test-ci/**'
7+ pull_request :
28
39name : Continuous integration
410
511jobs :
6- tests :
7- name : Tests
12+ Stable : # 2 jobs, one per lock file.
13+ name : Test - stable toolchain
814 runs-on : ubuntu-latest
915 strategy :
16+ fail-fast : false
1017 matrix :
11- include :
12- - rust : stable
13- env :
14- RUSTFMTCHK : true
15- - rust : nightly
16- env :
17- RUSTFMTCHK : false
18- - rust : 1.56.1
19- env :
20- RUSTFMTCHK : false
18+ dep : [minimal, recent]
2119 steps :
22- - name : Checkout Crate
23- uses : actions/checkout@v2
24- - name : Checkout Toolchain
25- uses : actions-rs/toolchain@v1
20+ - name : " Checkout repo "
21+ uses : actions/checkout@v4
22+ - name : " Checkout maintainer tools "
23+ uses : actions/checkout@v4
2624 with :
27- profile : minimal
28- toolchain : ${{ matrix.rust }}
29- override : true
30- - name : Running test script
31- env : ${{ matrix.env }}
32- run : ./contrib/test.sh
25+ repository : rust-bitcoin/rust-bitcoin-maintainer-tools
26+ rev : b2ac115
27+ path : maintainer-tools
28+ - name : " Select toolchain"
29+ uses : dtolnay/rust-toolchain@stable
30+ - name : " Set dependencies"
31+ run : cp Cargo-${{ matrix.dep }}.lock Cargo.lock
32+ - name : " Run test script"
33+ run : ./maintainer-tools/ci/run_task.sh stable
3334
34- integrations-tests :
35- name : Integration Tests
35+ Nightly : # 2 jobs, one per lock file.
36+ name : Test - nightly toolchain
3637 runs-on : ubuntu-latest
3738 strategy :
39+ fail-fast : false
40+ matrix :
41+ dep : [minimal, recent]
42+ steps :
43+ - name : " Checkout repo"
44+ uses : actions/checkout@v4
45+ - name : " Checkout maintainer tools"
46+ uses : actions/checkout@v4
47+ with :
48+ repository : rust-bitcoin/rust-bitcoin-maintainer-tools
49+ rev : b2ac115
50+ path : maintainer-tools
51+ - name : " Select toolchain"
52+ uses : dtolnay/rust-toolchain@nightly
53+ - name : " Set dependencies"
54+ run : cp Cargo-${{ matrix.dep }}.lock Cargo.lock
55+ - name : " Run test script"
56+ run : ./maintainer-tools/ci/run_task.sh nightly
57+
58+ MSRV : # 2 jobs, one per lock file.
59+ name : Test - 1.56.1 toolchain
60+ runs-on : ubuntu-latest
61+ strategy :
62+ fail-fast : false
63+ matrix :
64+ dep : [minimal, recent]
65+ steps :
66+ - name : " Checkout repo"
67+ uses : actions/checkout@v4
68+ - name : " Checkout maintainer tools"
69+ uses : actions/checkout@v4
70+ with :
71+ repository : rust-bitcoin/rust-bitcoin-maintainer-tools
72+ rev : b2ac115
73+ path : maintainer-tools
74+ - name : " Select toolchain"
75+ uses : dtolnay/rust-toolchain@stable
76+ with :
77+ toolchain : " 1.56.1"
78+ - name : " Set dependencies"
79+ run : cp Cargo-${{ matrix.dep }}.lock Cargo.lock
80+ - name : " Run test script"
81+ run : ./maintainer-tools/ci/run_task.sh msrv
82+
83+ Integration : # 1 job for each Bitcoin Core version.
84+ name : Integration tests - stable toolchain
85+ runs-on : ubuntu-latest
86+ strategy :
87+ fail-fast : false
3888 matrix :
39- rust : [stable]
4089 bitcoinversion :
4190 [
4291 " 0.18.0" ,
@@ -48,15 +97,11 @@ jobs:
4897 " 0.21.0" ,
4998 ]
5099 steps :
51- - name : Checkout Crate
52- uses : actions/checkout@v2
53- - name : Checkout Toolchain
54- uses : actions-rs/toolchain@v1
55- with :
56- profile : minimal
57- toolchain : ${{ matrix.rust }}
58- override : true
59- - name : Running test script
100+ - name : " Checkout repo"
101+ uses : actions/checkout@v4
102+ - name : " Select toolchain"
103+ uses : dtolnay/rust-toolchain@stable
104+ - name : " Run integration tests"
60105 env :
61106 BITCOINVERSION : ${{ matrix.bitcoinversion }}
62- run : ./contrib/test .sh
107+ run : ./contrib/integration_test .sh
0 commit comments