summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjkoan <jkoan@users.noreply.github.com>2021-10-04 20:51:23 +0200
committerjkoan <jkoan@users.noreply.github.com>2023-01-11 07:50:27 +0100
commitac1b0ae19a1b36c206a3a113324d132af040ddcb (patch)
treed4f07ac2a06dddae5ab89bc23bb25fb66ab011e0
parent0ca5ff1f605c9b7509fa34e9ed1e19826da0873a (diff)
downloadnavit-ac1b0ae19a1b36c206a3a113324d132af040ddcb.tar.gz
Add:build:Add Rviewdog to have automatic Formating suggestions
-rw-r--r--.github/workflows/build.yml7
-rwxr-xr-xscripts/ci_sanity_checks.sh4
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