Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
yongkangc committed Nov 22, 2023
1 parent a4bc0a9 commit 4f662a7
Showing 1 changed file with 19 additions and 27 deletions.
46 changes: 19 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
name: Continuous integration

env:
RUSTFLAGS: "--cfg CI_REDIS -Dwarnings"
RUSTDOCFLAGS: -Dwarnings
RUST_BACKTRACE: short

Expand Down Expand Up @@ -40,7 +39,7 @@ jobs:
needs:
- fmt
- test
- check-examples
# - check-examples
- clippy
- doc

Expand Down Expand Up @@ -113,13 +112,6 @@ jobs:
run: |
cargo +${{ matrix.toolchain }} test --tests --no-run --verbose ${{ matrix.features }}
- name: Setup redis
run: |
sudo apt install redis-server
redis-server --port 7777 > /dev/null &
redis-server --port 7778 > /dev/null &
redis-server --port 7779 > /dev/null &
- name: Test unit & integration tests
run: |
cargo +${{ matrix.toolchain }} test --tests --verbose ${{ matrix.features }}
Expand All @@ -129,29 +121,29 @@ jobs:
run: |
cargo +${{ matrix.toolchain }} test --doc --verbose ${{ matrix.features }}
check-examples:
runs-on: ubuntu-latest
# check-examples:
# runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
# steps:
# - name: Checkout
# uses: actions/checkout@v3

- name: Install Rust stable
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
# - name: Install Rust stable
# uses: dtolnay/rust-toolchain@master
# with:
# toolchain: stable

- name: Cache Dependencies
uses: Swatinem/rust-cache@v2
# - name: Cache Dependencies
# uses: Swatinem/rust-cache@v2

- name: Check examples
run: |
cargo +stable check --examples --features full
# - name: Check examples
# run: |
# cargo +stable check --examples --features full

# TODO: prolly move it to a separate step?
- name: Check with no default features
run: |
cargo +stable check --no-default-features
# # TODO: prolly move it to a separate step?
# - name: Check with no default features
# run: |
# cargo +stable check --no-default-features

clippy:
name: Run linter
Expand Down

0 comments on commit 4f662a7

Please sign in to comment.