Re-write CI #320
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- master | |
- 'test-ci/**' | |
pull_request: | |
name: Continuous integration | |
jobs: | |
Stable: | |
name: Test - stable toolchain | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: "Checkout repo" | |
uses: actions/checkout@v4 | |
- name: "Select toolchain" | |
uses: dtolnay/rust-toolchain@stable | |
- name: "Run test script" | |
run: ./contrib/run_task.sh stable | |
Nightly: | |
name: Test - nightly toolchain | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: "Checkout repo" | |
uses: actions/checkout@v4 | |
- name: "Select toolchain" | |
uses: dtolnay/rust-toolchain@nightly | |
- name: "Run test script" | |
run: ./contrib/run_task.sh nightly | |
MSRV: | |
name: Test - 1.56.1 toolchain | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: "Checkout repo" | |
uses: actions/checkout@v4 | |
- name: "Select toolchain" | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: "1.56.1" | |
- name: "Run test script" | |
run: ./contrib/run_task.sh msrv | |
Format: | |
name: Format - nightly toolchain | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: "Checkout repo" | |
uses: actions/checkout@v4 | |
- name: "Select toolchain" | |
uses: dtolnay/rust-toolchain@stable | |
- name: "Check formatting" | |
run: cargo fmt --all -- --check | |
Integration: | |
name: Integration Tests - stable toolchain | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
bitcoin_version: | |
[ | |
"0.18.0", | |
"0.18.1", | |
"0.19.0.1", | |
"0.19.1", | |
"0.20.0", | |
"0.20.1", | |
"0.21.0", | |
] | |
steps: | |
- name: "Checkout repo" | |
uses: actions/checkout@v4 | |
- name: "Select toolchain" | |
uses: dtolnay/rust-toolchain@stable | |
- name: Running test script | |
run: ./contrib/run_task.sh integration ${{ matrix.bitcoin_version }} |