refactor: Move content of channel.rs to lib.rs #8
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: Build & Test | |
on: | |
push: | |
paths: | |
- "**/Cargo.toml" | |
- "**/Cargo.lock" | |
- "src/**" | |
- "tests/**" | |
- "examples/**" | |
- ".github/workflows/rust.yml" | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
max-parallel: 3 | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Fetch Dependencies | |
run: cargo fetch | |
- name: Build | |
run: cargo build --all-features | |
- name: Run tests | |
run: cargo test | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- run: rustup component add clippy | |
- uses: clechasseur/rs-clippy-check@v3 | |
with: | |
args: --all-features |