Merge pull request #42 from neutron-org/feat/v047-icq #246
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: | |
- '**' | |
name: tests | |
jobs: | |
clippy: | |
name: Actions - clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
fetch-depth: 1 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: 1.68.2 | |
components: clippy | |
profile: minimal | |
override: true | |
- run: cargo fetch --verbose | |
- run: cargo clippy --all --all-targets -- -D warnings | |
rustfmt: | |
name: Actions - rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
fetch-depth: 1 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: 1.68.2 | |
components: rustfmt | |
profile: minimal | |
override: true | |
- run: cargo fmt -- --check | |
unit-test: | |
name: Actions - unit test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macOS-latest, ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
fetch-depth: 1 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: 1.68.2 | |
profile: minimal | |
- run: cargo fetch --verbose | |
- run: cargo build | |
- run: cargo test --verbose --all | |
env: | |
RUST_BACKTRACE: 1 |