From 7f26037afb287e9637d1a6838ccb854d6ca8c448 Mon Sep 17 00:00:00 2001 From: William Zhang Date: Tue, 30 Jan 2024 00:20:17 +0900 Subject: [PATCH] Update build.yml and rustfmt --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d04d274..5cf1978 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,9 +18,11 @@ jobs: steps: - uses: actions/checkout@v3 - name: Install Toolchain - run: rustup update stable && rustup default stable + run: rustup update stable && rustup default stable && rustup component add rustfmt - name: Install cargo-llvm-cov uses: taiki-e/install-action@cargo-llvm-cov + - name: Format check + run: cargo fmt --all -- --check - name: Generate code coverage run: cargo llvm-cov --all-features --workspace --codecov --output-path lcov.info - name: Archive code coverage results @@ -32,7 +34,7 @@ jobs: - name: Upload to codecov uses: codecov/codecov-action@v3 with: - token: 35cd3fff-7044-4bad-ba89-6201eea805a5 + token: be8874e2-10d6-434f-9d52-db6094de31d6 files: lcov.info name: codecov-umbrella # optional fail_ci_if_error: true