From ca7ee3833b7186044dcbbc49d43fc3ae2e0405c3 Mon Sep 17 00:00:00 2001 From: Meysam Hadeli Date: Sat, 17 May 2025 19:54:14 +0330 Subject: [PATCH] fix: fix dotnet format issue --- .github/actions/build/action.yml | 12 ++++++------ .husky/pre-commit | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index 1c9657d..2e85bd4 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -34,7 +34,7 @@ runs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: '9.x.x' + dotnet-version: '9.x.x' # https://learn.microsoft.com/en-us/dotnet/core/tools/global-tools - name: Restore .NET Tools @@ -55,11 +55,11 @@ runs: if: success() run: npm install - # - name: Format Service - # shell: bash - # if: ${{ success()}} - # run: | - # npm run ci-format + - name: Format Service + shell: bash + if: ${{ success()}} + run: | + npm run ci-format - name: Build Service shell: bash diff --git a/.husky/pre-commit b/.husky/pre-commit index b7807b0..bc7d452 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1,2 @@ -npm run format \ No newline at end of file +npm run format +npm run ci-format