Skip to content

Merge pull request #482 from controlflow/master #660

Merge pull request #482 from controlflow/master

Merge pull request #482 from controlflow/master #660

name: rd-kt-container
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-20.04
container: adoptopenjdk/openjdk11:x86_64-ubuntu-jdk-11.0.11_9
env:
GRADLE_USER_HOME: ${{ github.workspace }}/.github/gradle
TEAMCITY_VERSION: 1 # temporary; to disable cross tests
timeout-minutes: 25
steps:
- uses: actions/checkout@v3
- name: Gradle Wrapper Cache
uses: actions/cache@v3
with:
path: ${{ env.GRADLE_USER_HOME }}/wrapper
key: ${{ runner.os }}.gradle-wrapper.${{ hashFiles('gradle/**') }}
# TODO: See https://github.com/actions/runner/issues/449
# - name: Gradle Cache
# uses: actions/cache@v3
# with:
# path: ${{ env.GRADLE_USER_HOME }}/caches/modules-2
# key: ${{ runner.os }}.gradle.${{ hashFiles('**/*.gradle.kts') }}
- name: Assemble
run: ./gradlew assemble
- name: Build
run: ./gradlew build
- name: Upload Test Results
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: tests-log.${{ runner.os }}
path: "**/reports/*"