Merge pull request #141 from bitcoinppl/134-redesign-recovery-words-s… #102
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: | |
workflow_dispatch: {} | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
rustfmt: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install stable toolchain with rustfmt availableA | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- name: Run rustfmt | |
run: cd rust && cargo fmt --all -- --check | |
swiftformat: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: SwiftFormat | |
run: swiftformat --lint . --reporter github-actions-log --swiftversion 6 --exclude ios/Cove/Cove.swift | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Rust toolchain | |
run: rustup toolchain install stable --profile minimal | |
- name: Run tests | |
run: cd rust && cargo test | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: stable | |
components: clippy | |
override: true | |
- run: cd rust && cargo clippy -- -D warnings |