Skip to content

Fighting flaky tests #32

Fighting flaky tests

Fighting flaky tests #32

Workflow file for this run

name: Gradle Build and Tests
on:
push:
branches: [ "main" ]
pull_request:
jobs:
build-and-test:
runs-on: ubuntu-latest
permissions:
contents: read
checks: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Adding Google Services
env:
DATA: ${{ secrets.GOOGLE_SERVICES }}
run: echo $DATA | base64 -di > ./example/google-services.json
- name: Build with Gradle Wrapper
run: ./gradlew build
- name: Test with Gradle Wrapper
run: ./gradlew test
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '**/build/test-results/test*/TEST-*.xml'
- name: Publish Lint Report
uses: yutailang0119/action-android-lint@v4
if: success() || failure() # always run even if the previous step fails
with:
report-path: '**/build/reports/lint-results-*.xml'
ignore-warnings: false
continue-on-error: false # If annotations contain error of severity, action-android-lint exit 1.