From 123990c0d74c6fe88f394928aece89b0f18f104c Mon Sep 17 00:00:00 2001 From: Christian Egli Date: Mon, 1 Nov 2021 09:47:08 +0100 Subject: [PATCH] Add a gh action to check every commit for coding conventions Related to #476 --- .github/workflows/check-format.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/check-format.yml diff --git a/.github/workflows/check-format.yml b/.github/workflows/check-format.yml new file mode 100644 index 00000000..208360e1 --- /dev/null +++ b/.github/workflows/check-format.yml @@ -0,0 +1,17 @@ +name: Check code conventions + +on: [push] + +jobs: + check-code-conventions: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + distribution: 'temurin' + java-version: '11' + - name: Build with Maven + run: mvn --batch-mode editorconfig:check