Skip to content

Commit

Permalink
CI improvements
Browse files Browse the repository at this point in the history
- add clippy to ci
- build with --all-features
  • Loading branch information
Congyuwang authored and sticnarf committed Jul 25, 2024
1 parent 54cb801 commit b652268
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,15 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
components: clippy
override: true
- name: Clippy
run: |
cargo clippy --all-targets --no-default-features --features=tokio -- -D warnings
cargo clippy --all-targets --no-default-features --features=tokio,tor -- -D warnings
cargo clippy --all-targets --no-default-features --features=futures-io -- -D warnings
cargo clippy --all-targets --no-default-features --features=futures-io,tor -- -D warnings
cargo clippy --all-targets --all-features -- -D warnings
- name: Install 3proxy
run: |
cd $HOME
Expand All @@ -27,9 +34,11 @@ jobs:
cd 3proxy-0.8.13 && ln -s Makefile.Linux Makefile && make -j$(nproc)
sudo apt-get update
sudo apt-get install socat -y
- name: Build
run: |
cargo build --examples --all-features
cargo build --verbose --all --all-features
cargo test --lib --verbose --all-features
- name: Run tests
run: |
cargo build --examples
cargo build --verbose --all
cargo test --lib --verbose
env PATH=$HOME/3proxy-0.8.13/src:$PATH tests/integration_tests.sh

0 comments on commit b652268

Please sign in to comment.