addressing feedback #490
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: [push, pull_request] | |
env: | |
# Allow precise monitoring of the save/restore of Gradle User Home by `gradle-build-action` | |
# See https://github.com/marketplace/actions/gradle-build-action?version=v2.1.1#cache-debugging-and-analysis | |
GRADLE_BUILD_ACTION_CACHE_DEBUG_ENABLED: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: "Build and Test" | |
uses: gradle/gradle-build-action@v2 | |
with: | |
# Don't reuse cache entries from any other Job. | |
gradle-home-cache-strict-match: true | |
# Limit the size of the cache entry. | |
# These directories contain instrumented/transformed dependency jars which can be reconstructed relatively quickly. | |
gradle-home-cache-excludes: | | |
caches/jars-9 | |
caches/transforms-3 | |
# disable configuration cache due to | |
# https://github.com/gradle/gradle/issues/21088 | |
arguments: check :ftlModelBuilder:check publish --stacktrace --no-configuration-cache | |
build-root-directory: AndroidXCI | |
- name: "Upload build repository" | |
continue-on-error: true | |
uses: actions/upload-artifact@v2 | |
with: | |
name: repo | |
path: AndroidXCI/build/repo |