-
Notifications
You must be signed in to change notification settings - Fork 123
43 lines (34 loc) · 1.21 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: CI
on: [pull_request, workflow_dispatch]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
runs-on: ubuntu-latest
timeout-minutes: 60
name: CI
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Java Version
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
cache-read-only: ${{ github.event.pull_request.base.ref != 'main' && github.event.pull_request.base.ref != 'next' }}
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Test
run: bash ./gradlew spotlessCheck assembleDebug testDebugUnitTest --info --stacktrace
- name: Publish unit test reports
if: always()
uses: mikepenz/action-junit-report@a6502270b81b22b7cf745720fcf00edf7d31dc04
with:
check_name: 'Test report'
github_token: ${{ github.token }}
report_paths: '**/build/test-results/**/TEST-*.xml'
fail_on_failure: true