31 lines
717 B
YAML
31 lines
717 B
YAML
|
name: ci
|
||
|
|
||
|
on: [push, pull_request]
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
|
||
|
- uses: actions/cache@v1
|
||
|
with:
|
||
|
path: ~/.gradle/wrapper
|
||
|
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.*') }}
|
||
|
restore-keys: |
|
||
|
${{ runner.os }}-gradle-wrapper-
|
||
|
|
||
|
- uses: actions/cache@v1
|
||
|
with:
|
||
|
path: ~/.gradle/caches
|
||
|
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle.kts') }} }}
|
||
|
restore-keys: |
|
||
|
${{ runner.os }}-gradle-caches-
|
||
|
|
||
|
- uses: actions/setup-java@v1
|
||
|
with:
|
||
|
java-version: 1.8
|
||
|
|
||
|
- run: ./gradlew check
|