mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-07 10:14:35 +00:00
ci(test): always check everything (#2142)
* ci(test): always check everything * move Cargo.lock check to the last step
This commit is contained in:
@@ -58,23 +58,26 @@ jobs:
|
|||||||
|
|
||||||
- uses: taiki-e/install-action@cargo-hack
|
- uses: taiki-e/install-action@cargo-hack
|
||||||
|
|
||||||
- name: Check Cargo.lock is up to date
|
|
||||||
run: |
|
|
||||||
if ! cargo metadata --format-version 1 --locked > /dev/null; then
|
|
||||||
echo "::error::Cargo.lock is out of date. Run cargo generate-lockfile or cargo build locally, then commit Cargo.lock."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
|
if: ${{ !cancelled() }}
|
||||||
run: cargo fmt --all -- --check
|
run: cargo fmt --all -- --check
|
||||||
|
|
||||||
- name: Check Clippy
|
- name: Check Clippy
|
||||||
|
if: ${{ !cancelled() }}
|
||||||
run: cargo clippy --all-targets --features full --all -- -D warnings
|
run: cargo clippy --all-targets --features full --all -- -D warnings
|
||||||
|
|
||||||
- name: Check features
|
- name: Check features
|
||||||
if: ${{ !cancelled() }}
|
if: ${{ !cancelled() }}
|
||||||
run: cargo hack check --package easytier --each-feature --exclude-features macos-ne --verbose
|
run: cargo hack check --package easytier --each-feature --exclude-features macos-ne --verbose
|
||||||
|
|
||||||
|
- name: Check Cargo.lock is up to date
|
||||||
|
if: ${{ !cancelled() }}
|
||||||
|
run: |
|
||||||
|
if ! cargo metadata --format-version 1 --locked > /dev/null; then
|
||||||
|
echo "::error::Cargo.lock is out of date. Run cargo generate-lockfile or cargo build locally, then commit Cargo.lock."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
pre-test:
|
pre-test:
|
||||||
name: Build test
|
name: Build test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user