forked from pengrad/java-telegram-bot-api
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.27 KB
/
gradle.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
name: Gradle Test + Codecov
on:
workflow_dispatch:
push:
branches: [ "master" ]
# pull_request:
# branches: [ "master" ]
permissions:
contents: read
jobs:
GradleTestCodecov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
cache: 'gradle'
- name: Gradle Test
run: ./gradlew clean check
env:
CHAT_ID: ${{ secrets.CHAT_ID }}
GROUP_ID: ${{ secrets.GROUP_ID }}
TEST_TOKEN: ${{ secrets.TEST_TOKEN }}
TEST_PASSPORT_DATA: ${{ secrets.TEST_PASSPORT_DATA }}
TEST_CALLBACK_QUERY: ${{ secrets.TEST_CALLBACK_QUERY }}
TEST_INLINE_QUERY: ${{ secrets.TEST_INLINE_QUERY }}
TEST_CHOSEN_INLINE_RESULT: ${{ secrets.TEST_CHOSEN_INLINE_RESULT }}
TEST_POLL_ANSWER: ${{ secrets.TEST_POLL_ANSWER }}
TEST_SHIP_QUERY: ${{ secrets.TEST_SHIP_QUERY }}
TEST_PRECHECKOUT_QUERY: ${{ secrets.TEST_PRECHECKOUT_QUERY }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
- name: Gradle Jacoco
run: ./gradlew jacocoTestReport
- name: Call Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}