move check-generateLogic-committed into own workflow due to github bug

Whatever I tried to do so far, as soon as I run one gradle script in
bash, the one in powershell does not behave as it would normally.
Thus moving the check into an own workflow.
The benefit, we only run it if something has changed in the input files
of the generation.
This commit is contained in:
Robert Stoll
2020-07-01 20:41:20 +02:00
parent 3f716633d8
commit d2bcc9c665
2 changed files with 28 additions and 5 deletions

View File

@@ -0,0 +1,27 @@
name: Check Generated
on:
push:
paths:
- 'logic/**/main/**/*Assertions.kt'
pull_request:
paths:
- 'logic/**/main/**/*Assertions.kt'
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: true
matrix:
java_version: [9, 10, 11, 12, 13, 14]
steps:
- uses: actions/checkout@v2
- name: "Set up JDK ${{ matrix.java_version }}"
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java_version }}
- name: check generateLogic committed
run: ./gradle/scripts/check-generateLogic-committed.sh
shell: bash

View File

@@ -19,12 +19,8 @@ jobs:
with:
java-version: ${{ matrix.java_version }}
- name: check generateLogic committed
run: ./gradle/scripts/check-generateLogic-committed.sh
shell: bash
- name: buildNonDeprecatedJvm
run: ./gradlew clean buildNonDeprecatedJvm
run: ./gradlew buildNonDeprecatedJvm
- name: Cache android jar
id: android-cache