Merge pull request #52 from LinkTed/feat/update-dependency #63
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: Continuous Integration | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| rustfmt: | |
| name: Job rustfmt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install toolchain with rustfmt | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt | |
| - uses: actions/checkout@v4 | |
| - name: Run rustfmt | |
| run: cargo fmt --all -- --check | |
| clippy: | |
| name: Job clippy | |
| needs: rustfmt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install toolchain with clippy | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - uses: actions/checkout@v4 | |
| - name: Run clippy | |
| uses: giraffate/clippy-action@v1 | |
| with: | |
| reporter: 'github-pr-check' | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| clippy_flags: --deny warnings -A clippy::unknown-clippy-lints | |
| clippy-windows-service: | |
| name: Job clippy windows service | |
| needs: rustfmt | |
| runs-on: windows-latest | |
| steps: | |
| - name: Install toolchain with clippy | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - uses: actions/checkout@v4 | |
| - name: Run clippy windows service | |
| uses: giraffate/clippy-action@v1 | |
| with: | |
| reporter: 'github-pr-check' | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| clippy_flags: --bin windows-service --features main-windows-service -- --deny warnings -A clippy::unknown-clippy-lints | |
| tests: | |
| name: Job tests | |
| needs: [clippy, clippy-windows-service] | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| rust_channel: [stable, nightly] | |
| features: [default, socks5, native-certs] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Install toolchain ${{ matrix.rust_channel }} on ${{ matrix.os }} | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ matrix.rust_channel }} | |
| - uses: actions/checkout@v4 | |
| - name: Run cargo test | |
| run: cargo test --no-default-features --features "${{ matrix.features }}" | |