diff --git a/.cargo-husky/hooks/pre-commit b/.cargo-husky/hooks/pre-commit index 66f9786..6cf242a 100755 --- a/.cargo-husky/hooks/pre-commit +++ b/.cargo-husky/hooks/pre-commit @@ -14,5 +14,8 @@ cargo clippy --all-targets --all-features echo '$ cargo fmt' cargo fmt --all -- --check +echo '$ cargo build --release' +cargo build --release + echo '$ cargo test' cargo test diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 961ff0d..467de18 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -12,7 +12,7 @@ jobs: - name: Run Clippy run: cargo clippy --all-targets --all-features fmt-check: - name: 👀 fmt Check + name: 👀 Fmt Check runs-on: ubuntu-latest steps: - name: Checkout Code @@ -20,3 +20,12 @@ jobs: - name: Run Fmt run: cargo fmt --all -- --check + build-check: + name: 🔨 Build Check + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v3 + + - name: Try To Build + run: cargo build --release