You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
908 B
YAML
36 lines
908 B
YAML
4 years ago
|
name: Gradle Unit Tests
|
||
|
on:
|
||
|
workflow_dispatch:
|
||
|
push:
|
||
|
branches: [ main, develop, actions, feature/unit-tests ]
|
||
|
pull_request:
|
||
|
branches: [ main, develop, actions, feature/unit-tests ]
|
||
|
|
||
|
jobs:
|
||
|
test:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
|
||
|
- name: Setup Java
|
||
|
uses: actions/setup-java@v1
|
||
|
with:
|
||
|
java-version: 1.8
|
||
|
|
||
|
- name: Cache build data
|
||
|
uses: actions/cache@v2
|
||
|
with:
|
||
|
path: |
|
||
|
~/.gradle/caches
|
||
|
~/.gradle/wrapper
|
||
|
key: ${{ runner.os }}-gradle-${{ hashFiles('build.gradle') }}
|
||
|
restore-keys: |
|
||
|
${{ runner.os }}-gradle-
|
||
|
|
||
|
- name: Test
|
||
|
run: chmod +x gradlew && ./gradlew test
|
||
|
|
||
|
- name: Cleanup Gradle Cache
|
||
|
run: |
|
||
|
rm -f ~/.gradle/caches/modules-2/modules-2.lock
|
||
|
rm -f ~/.gradle/caches/modules-2/gc.properties
|