From 4b23ca11db75c1c404f6ffdde6fb3c1f6b33260b Mon Sep 17 00:00:00 2001 From: Inaki Villar Date: Wed, 9 Mar 2022 10:46:49 -0800 Subject: [PATCH] split GHA Gradle conf --- .github/workflows/gradle.yml | 13 ------------ .github/workflows/samples_gradle.yml | 30 ++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/samples_gradle.yml diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 40ed3f0..9c67402 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -15,9 +15,6 @@ jobs: - uses: actions/setup-java@v1 with: java-version: 8 - - uses: webfactory/ssh-agent@v0.5.4 - with: - ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} - name: Setup Gradle uses: gradle/gradle-build-action@v2 @@ -27,16 +24,6 @@ jobs: run: ./gradlew ktlintCheck - name: Build run: ./gradlew test --stacktrace - - name: Build Samples - run: | - for d in samples/*; do - set -e - [ -d "$d" ] || continue - echo "== $d ==" - pushd "$d" >/dev/null - ../../gradlew gitQueryInit build - popd >/dev/null - done - name: Publish Unit Test Results uses: EnricoMi/publish-unit-test-result-action@v1 if: always() diff --git a/.github/workflows/samples_gradle.yml b/.github/workflows/samples_gradle.yml new file mode 100644 index 0000000..2be73d3 --- /dev/null +++ b/.github/workflows/samples_gradle.yml @@ -0,0 +1,30 @@ +name: Gradle Samples +on: + push: + branches: [ main ] +jobs: + build: + strategy: + matrix: + os: [ubuntu-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 8 + - uses: webfactory/ssh-agent@v0.5.4 + with: + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + - name: Build Samples + run: | + for d in samples/*; do + set -e + [ -d "$d" ] || continue + echo "== $d ==" + pushd "$d" >/dev/null + ../../gradlew gitQueryInit build + popd >/dev/null + done