fix: handle 200 (command OK) as success in cwd() #160
This file contains hidden or 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: test | |
| on: [ push, pull_request ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| test: | |
| name: Test (${{ matrix.features }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| features: | |
| [ | |
| native-tls, | |
| rustls-aws-lc-rs, | |
| rustls-ring, | |
| async-std, | |
| tokio, | |
| async-std-async-native-tls, | |
| tokio-async-native-tls, | |
| async-std-rustls-aws-lc-rs, | |
| async-std-rustls-ring, | |
| tokio-rustls-aws-lc-rs, | |
| tokio-rustls-ring, | |
| ] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Setup rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| components: rustfmt, clippy | |
| - uses: taiki-e/install-action@v2 | |
| with: | |
| tool: cargo-llvm-cov | |
| - name: Clippy | |
| run: cargo clippy --package suppaftp --features ${{ matrix.features }} -- -Dwarnings | |
| - name: Run tests with coverage | |
| run: cargo llvm-cov --no-fail-fast --no-default-features --features ${{ matrix.features }} --workspace --lcov --output-path lcov-${{ matrix.features }}.info | |
| - name: Upload to Coveralls | |
| uses: coverallsapp/github-action@v2.3.6 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| parallel: true | |
| file: lcov-${{ matrix.features }}.info | |
| wait-for-coverage: | |
| name: Wait for coverage | |
| runs-on: ubuntu-latest | |
| needs: test | |
| steps: | |
| - name: Wait for coveralls | |
| uses: coverallsapp/github-action@v2.3.6 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| parallel-finished: true |