Update agp to v8.7.3 (#62) #35
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: Generate coverage badge | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Restore cached gradle | |
id: cache-gradle-restore | |
uses: actions/cache/restore@v4 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-caches | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v3 | |
- name: Generate coverage output | |
run: | | |
./gradlew -q :eungabi:printCoverage --no-configuration-cache >> coverage.txt | |
echo "COVERAGE=$(<coverage.txt)" >> $GITHUB_ENV | |
- name: Update dynamic badge gist | |
uses: schneegans/[email protected] | |
with: | |
auth: ${{ secrets.TOKEN_GITHUB }} | |
gistID: 9699425e3de326e1772351520d991821 | |
filename: eungabi-coverage-badge.json | |
label: coverage | |
message: ${{env.COVERAGE}}% | |
valColorRange: ${{env.COVERAGE}} | |
minColorRange: 0 | |
maxColorRange: 100 | |
- name: Cache gradle caches | |
id: cache-gradle-save | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ steps.cache-gradle-restore.outputs.cache-primary-key }} |