Update peter-evans/find-comment digest to d743528 #817
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: Android CI | |
on: | |
pull_request: | |
types: [ opened, synchronize, reopened, ready_for_review ] | |
branches: | |
- develop | |
jobs: | |
unit_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Cache Gradle packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
restore-keys: ${{ runner.os }}-gradle | |
- name: Decode google-services.json | |
env: | |
GOOGLE_SERVICE: ${{ secrets.GOOGLE_SERVICE}} | |
run: echo $GOOGLE_SERVICE | base64 --decode > ./app/google-services.json | |
- name: Unit Test | |
env: | |
TZ: Asia/Tokyo | |
run: ./gradlew testDebugUnitTest | |
- name: Create jacoco report | |
run: ./gradlew jacocoTestReport | |
- uses: codecov/codecov-action@v3 | |
- name: Publish Test Report | |
uses: mikepenz/action-junit-report@v4 | |
if: always() | |
with: | |
report_paths: '**/build/test-results/*/TEST-*.xml' | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Cache Gradle packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
restore-keys: ${{ runner.os }}-gradle | |
- name: Decode google-services.json | |
env: | |
GOOGLE_SERVICE: ${{ secrets.GOOGLE_SERVICE}} | |
run: echo $GOOGLE_SERVICE | base64 --decode > ./app/google-services.json | |
- name: Lint | |
run: ./gradlew lintDebug |