feat: add timeout to the http client #707
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
Tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- name: Cache Gradle and wrapper | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 11 | |
distribution: 'zulu' | |
- name: Grant Permission for Gradlew to Execute | |
run: chmod +x gradlew | |
- name: Run Lint | |
run: ./gradlew lintDebug | |
- name: Run Ktlint | |
run: ./gradlew ktlintCheck | |
- name: Run build debug | |
run: ./gradlew assembleDebug | |
- name: Run Tests | |
run: ./gradlew :Provider:testDebugUnitTest --no-daemon --stacktrace --info | |
- name: Run build release | |
run: ./gradlew assembleRelease |