2021-03-25 12:26:26 +01:00
|
|
|
name: Test
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request: {}
|
|
|
|
push:
|
2021-05-06 18:25:34 +02:00
|
|
|
branches: [main, develop]
|
2021-03-25 12:26:26 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
unit-tests:
|
2021-05-19 17:48:12 +02:00
|
|
|
name: Run Unit Tests
|
2021-03-25 12:26:26 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/caches
|
|
|
|
~/.gradle/wrapper
|
|
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-gradle-
|
|
|
|
- name: Run unit tests
|
|
|
|
run: ./gradlew clean test --stacktrace -PallWarningsAsErrors=false
|