-
Notifications
You must be signed in to change notification settings - Fork 200
53 lines (40 loc) · 1.26 KB
/
unit-test.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
44
45
46
47
48
49
50
51
52
53
name: unit-test
on:
push:
branches:
- main
pull_request:
paths-ignore:
- 'app-ios/**'
run-name: "unit-test by ${{ github.actor }}"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
permissions: { }
jobs:
unit-test:
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
contents: read # for clone
actions: write # for upload-artifact
steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- uses: ./.github/actions/setup-java
- name: Upload an event payload for EnricoMi/publish-unit-test-result-action
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: event-payload
path: ${{ github.event_path }}
- run: ./gradlew detekt --stacktrace
- run: ./gradlew testDevDebugUnitTest testDebugUnitTest --stacktrace
# Saving cost
# - run: ./gradlew koverHtmlReportDevDebug --stacktrace
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
if: always()
with:
name: test-reports
path: |
**/reports
**/build/outputs/roborazzi