Skip to content

Commit

Permalink
ci: Split clippy and docs check (#1785)
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <github@xuanwo.io>
  • Loading branch information
Xuanwo authored Mar 28, 2023
1 parent 59d709d commit 63918c2
Showing 1 changed file with 40 additions and 7 deletions.
47 changes: 40 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,27 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup Rust toolchain
uses: ./.github/actions/setup
with:
cache-key: "-check"

- name: Check license headers
uses: korandoru/hawkeye@v1.5.4

- name: Cargo format
run: cargo fmt --all -- --check

check_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup Rust toolchain
uses: ./.github/actions/setup
with:
cache-key: "-check"

- name: Checkout python env
uses: actions/setup-python@v4
with:
Expand All @@ -52,22 +73,34 @@ jobs:
distribution: temurin
java-version: "11"

- name: Cargo doc
run: cargo doc --lib --no-deps --all-features -p opendal

check_clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup Rust toolchain
uses: ./.github/actions/setup
with:
cache-key: "-check"

- name: Check license headers
uses: korandoru/hawkeye@v1.5.4
- name: Checkout python env
uses: actions/setup-python@v4
with:
python-version: "3.8"

- name: Checkout java env
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: "11"

- name: Cargo format
run: cargo fmt --all -- --check
- name: Cargo clippy
run: cargo clippy --all-targets --all-features --workspace -- -D warnings
- name: Cargo doc
run: cargo doc --lib --no-deps --all-features -p opendal

msrv_check:
check_msrv:
runs-on: ubuntu-latest
env:
# OpenDAL's MSRV is 1.60.
Expand Down

0 comments on commit 63918c2

Please sign in to comment.