Merge pull request #343 from mircoianese/api_v6.9 #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
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 | |
run: bash <(curl -s https://codecov.io/bash) |