-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (72 loc) · 1.92 KB
/
stability.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: stability
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/actions/gradle
- name: check publish task
shell: bash
run: |
./gradlew publishReleasePublicationToLocalRepository --scan
test:
runs-on: ubuntu-latest
permissions:
contents: write
issues: read
checks: write
pull-requests: write
strategy:
fail-fast: false
matrix:
module: [ "glyph-ktx", "glyph-compose" ]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/actions/gradle
- name: unit test
shell: bash
run: |
./gradlew :${{ matrix.module }}:testDebugUnitTest --scan
- uses: EnricoMi/publish-unit-test-result-action@v2
if: ${{ !cancelled() }}
with:
check_name: ${{ matrix.module }}
files: |
**/test-results/**/*.xml
- name: jacoco
if: ${{ !cancelled() }}
shell: bash
run: |
./gradlew :${{ matrix.module }}:jacoco --scan
- uses: madrapps/[email protected]
if: ${{ !cancelled() }}
with:
paths: |
${{ github.workspace }}/${{ matrix.module }}/build/reports/jacoco/jacoco/jacoco.xml
title: ${{ matrix.module }}
update-comment: true
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 0
min-coverage-changed-files: 0
api:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/actions/gradle
- name: check api file
shell: bash
run: |
./gradlew apiCheck --scan