Skip to content

Merge pull request #391 from mircoianese/master #60

Merge pull request #391 from mircoianese/master

Merge pull request #391 from mircoianese/master #60

Workflow file for this run

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 }}