check generateLogic is committed

This commit is contained in:
Robert Stoll
2020-06-28 22:04:31 +02:00
parent 03e56f3f2f
commit c9bce12630
3 changed files with 22 additions and 3 deletions

View File

@@ -19,6 +19,12 @@ jobs:
with:
java-version: ${{ matrix.java_version }}
- name: check generateLogic committed
run: ./gradle/scripts/check-generateLogic-committed.sh
- name: buildNonDeprecatedJvm
run: ./gradlew buildNonDeprecatedJvm
- name: Cache android jar
id: android-cache
uses: actions/cache@v1
@@ -26,9 +32,6 @@ jobs:
path: android-jar-cache
key: ${{ runner.os }}-android-version-${{ env.android-version }}
- name: buildNonDeprecatedJvm
run: ./gradlew buildNonDeprecatedJvm
- name: download Android SDK's android.jar (or use cached file)
if: steps.android-cache.outputs.cache-hit != 'true'
run: |

View File

@@ -10,6 +10,8 @@ jobs:
include:
- env: MODE=current_11
script:
- set -e
- ./gradle/scripts/check-generateLogic-committed.sh
- ./gradlew buildAllWithoutJs
- misc/tools/atrium-scala-test/gradlew -p ./misc/tools/atrium-scala-test build -i
after_success: bash <(curl -s https://codecov.io/bash) -F current

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -e
current_dir="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
"$current_dir/../../gradlew" generateLogic
output=$(git status --porcelain);
if [ -n "$output" ]; then
echo "You forgot to commit the changes of generateLogic - run \`./gradlew generateLogic\` again and commit them. Following files are affected:"
printf "%s\n" "$output";
git diff --color -R;
exit 1;
fi