fix: test #315
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 | |
on: [push, pull_request] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
components: rustfmt, clippy | |
- name: Setup containers | |
run: docker-compose -f "tests/docker-compose.yml" up -d --build | |
- name: Build simple | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --package suppaftp | |
- name: Build secure (native-tls) | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --features native-tls,deprecated --package suppaftp | |
- name: Build secure (rustls) | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --features rustls,deprecated --package suppaftp | |
- name: Build async | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --features async,deprecated --package suppaftp | |
- name: Build async-native-tls | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --features async-native-tls,deprecated --package suppaftp | |
- name: Build all features | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --features deprecated,native-tls,rustls,async-native-tls,async-rustls --package suppaftp | |
- name: Run tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --lib --package suppaftp --no-default-features --features rustls,native-tls,async-native-tls,async-rustls,with-containers --no-fail-fast | |
env: | |
RUST_LOG: trace | |
- name: Format | |
run: cargo fmt --all -- --check | |
- name: Clippy | |
run: cargo clippy --package suppaftp --features deprecated,native-tls,rustls,async-native-tls,async-rustls -- -Dwarnings |