auto-musik

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit c1c3d22bab221d761c8d66ae547efe859dd3600b
parent 165ffd4fd241d1b2973b76ac6ff5c2a39c25b1c3
Author: Minerva_juppiter <94231606+minerva-jupiter@users.noreply.github.com>
Date:   Fri,  7 Nov 2025 22:06:10 +0900

Create testing.yml
Diffstat:
A.github/workflows/testing.yml | 44++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+), 0 deletions(-)

diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml @@ -0,0 +1,44 @@ +name: Rust Testing + +on: + pull_request: + push: + branches: [ main ] + workflow_dispatch: + workflow_call: + +env: + CARGO_TERM_COLOR: always + +jobs: + test: + name: Test + runs-on: ${{ matrix.os }} + needs: ["check"] + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + steps: + - uses: actions/checkout@v3 + - name: Cache Rust dependencies + uses: Swatinem/rust-cache@v2 + - name: Test Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose + + check: + name: Rustfmt + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Cache Rust dependencies + uses: Swatinem/rust-cache@v2 + - name: Install Rust fmt + run: rustup component add rustfmt + - name: Install Rust clippy + run: rustup component add clippy + - name: Run rustfmt + run: cargo fmt --all -- --check + - name: Run clippy + run: cargo clippy --all-targets --all-features -- -D warnings