Improve tracing #75
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
name: CI | |
on: | |
push: | |
branches: | |
- master | |
- 6.x | |
pull_request: | |
branches: | |
- master | |
- 6.x | |
defaults: | |
run: | |
shell: bash | |
env: | |
RUSTFLAGS: --deny warnings | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: peaceiris/actions-mdbook@v1 | |
with: | |
mdbook-version: latest | |
- name: Install mdbook-linkcheck | |
run: | | |
mkdir -p mdbook-linkcheck | |
cd mdbook-linkcheck | |
wget https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases/latest/download/mdbook-linkcheck.x86_64-unknown-linux-gnu.zip | |
unzip mdbook-linkcheck.x86_64-unknown-linux-gnu.zip | |
chmod +x mdbook-linkcheck | |
pwd >> $GITHUB_PATH | |
- run: mdbook build docs | |
- name: Deploy Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
if: github.ref == 'refs/heads/master' | |
with: | |
github_token: ${{secrets.GITHUB_TOKEN}} | |
publish_branch: gh-pages | |
publish_dir: docs/build/html | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust Toolchain Components | |
uses: actions-rs/toolchain@v1 | |
with: | |
components: clippy, rustfmt | |
override: true | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Clippy | |
run: cargo clippy --all --all-targets | |
- name: Format | |
run: cargo fmt --all -- --check | |
- name: Check for Forbidden Words | |
run: | | |
sudo apt-get install ripgrep | |
./bin/forbid | |
test: | |
strategy: | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
runs-on: ${{matrix.os}} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust Toolchain Components | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Test | |
run: cargo test --all | |
core: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust Toolchain Components | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Install Bitcoin Core | |
run: ./bin/install-bitcoin-core-linux | |
- name: Test | |
run: cargo test --all -- --ignored |