mirror of
https://github.com/jlengrand/atrium.git
synced 2026-03-10 08:01:19 +00:00
check generateLogic is committed
This commit is contained in:
9
.github/workflows/java-windows.yml
vendored
9
.github/workflows/java-windows.yml
vendored
@@ -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: |
|
||||
|
||||
@@ -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
|
||||
|
||||
14
gradle/scripts/check-generateLogic-committed.sh
Executable file
14
gradle/scripts/check-generateLogic-committed.sh
Executable 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
|
||||
Reference in New Issue
Block a user