-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 1.05 KB
/
main_build.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
name: Gradle Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: '17'
cache: gradle
- name: Copy ConfigProvider for CI
run: cp composeApp/src/commonTest/kotlin/uk/ryanwong/gmap2ics/app/configs/ProvideConfig.kt composeApp/src/commonMain/kotlin/uk/ryanwong/gmap2ics/app/configs/ProvideConfig.kt
- name: Install Xvfb
run: sudo apt-get install -y xvfb
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
- name: Gradle build
run: xvfb-run ./gradlew build koverXmlReport --no-daemon
- name: Run codacy-coverage-reporter
uses: codacy/[email protected]
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: composeApp/build/reports/kover/report.xml