From ac1b0ae19a1b36c206a3a113324d132af040ddcb Mon Sep 17 00:00:00 2001 From: jkoan Date: Mon, 4 Oct 2021 20:51:23 +0200 Subject: Add:build:Add Rviewdog to have automatic Formating suggestions --- .github/workflows/build.yml | 7 +++++++ scripts/ci_sanity_checks.sh | 4 +--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 333e4e0d8..02a97dd32 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,12 +12,19 @@ jobs: - uses: actions/checkout@v2 - name: run sanity check script run: bash scripts/ci_sanity_checks.sh + - uses: reviewdog/action-suggester@v1 + with: + github_token: ${{ secrets.github_token }} + tool_name: Navit sanity Check + level: error + fail_on_error: true - name: Run CheckStyle Test run: ./gradlew checkstyleMain - uses: actions/upload-artifact@v1 with: name: Store checkstyle report path: navit/android/checkstyle + build_linux: runs-on: ubuntu-latest needs: sanity_check diff --git a/scripts/ci_sanity_checks.sh b/scripts/ci_sanity_checks.sh index de46d5f15..13b3cc5da 100755 --- a/scripts/ci_sanity_checks.sh +++ b/scripts/ci_sanity_checks.sh @@ -56,6 +56,4 @@ for f in $(git diff --name-only refs/remotes/origin/trunk | sort -u); do fi fi fi -done - -exit $return_code +done \ No newline at end of file -- cgit v1.2.1