-
-
Notifications
You must be signed in to change notification settings - Fork 16
38 lines (35 loc) · 1.04 KB
/
gradle-ci-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
name: build
on:
push:
branches:
- master
- dev
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
- name: Build with Gradle
uses: eskatos/gradle-command-action@v1
env:
TELEGRAM_ID: ${{ secrets.TELEGRAM_ID }}
CHAT_ID: ${{ secrets.CHAT_ID }}
BOT_ID: ${{ secrets.BOT_ID }}
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
BOT_TOKEN_2: ${{ secrets.BOT_TOKEN_2 }}
with:
gradle-version: current
arguments: build koverXmlReport -PsonatypeUsername=${{secrets.SONATYPE_USERNAME}} -PsonatypePassword=${{secrets.SONATYPE_PASSWORD}}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: telegram-bot/build/reports/kover/report.xml
verbose: true