fix: ci #66
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
name: Linux | |
on: [push, pull_request] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: sudo apt update && sudo apt install -y libssh2-1-dev libssl-dev | |
- name: Setup containers | |
run: docker compose -f "tests/docker-compose.yml" up -d --build | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
override: true | |
components: rustfmt, clippy | |
- name: Build | |
run: cargo build --all-features | |
- name: Build (unsecure) | |
run: cargo build --no-default-features | |
- name: Format | |
run: cargo fmt --all -- --check | |
- name: Clippy | |
run: cargo clippy --features find -- -Dwarnings | |
- name: Run tests | |
run: cargo test --all-features --features find,github-actions,with-containers | |
env: | |
RUST_LOG: trace |