Skip to content

Bump AS from Electric Eel to Flamingo #538

Bump AS from Electric Eel to Flamingo

Bump AS from Electric Eel to Flamingo #538

Workflow file for this run

name: CI
on:
push:
branches:
- main
- develop
paths-ignore:
- docs/**
- README.md
- LICENSE
pull_request:
branches:
- develop
paths-ignore:
- docs/**
- README.md
- LICENSE
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/workflows/templates/setup-android
- name: Run Compile
run: ./gradlew assembleDebug
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/workflows/templates/setup-android
- name: Test with Gradle
run: ./gradlew test --stacktrace
- name: Upload test results Artifact
uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: results
path: |
**/build/reports/tests/**/*
**/build/reports/test-results/**/*
if-no-files-found: warn
retention-days: 14
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/workflows/templates/setup-android
- name: Run Inspection
run: ./gradlew lint
- name: Show results on GitHub
uses: yutailang0119/action-android-lint@v3
with:
report-path: '**/build/reports/lint-results-*.xml'
- name: Upload results Artifact
uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: results
path: |
**/build/reports/lint-results-*.html
**/build/reports/lint-results-*.xml
if-no-files-found: error
retention-days: 14
detekt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/workflows/templates/setup-android
- name: Lint with detekt
run: ./gradlew detekt
- name: Upload results Artifact
uses: actions/upload-artifact@v3
if: failure()
with:
name: results
path: |
**/build/reports/detekt/**/*
if-no-files-found: error
retention-days: 14
ktlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/workflows/templates/setup-android
- name: Install ktlint
run: |
curl -sSLO https://github.com/pinterest/ktlint/releases/download/0.42.1/ktlint
chmod a+x ktlint
sudo mv ktlint /usr/local/bin/
- name: Lint with ktlint
run: ktlint --reporter=checkstyle,output=build/ktlint-report.xml
continue-on-error: true
- name: Show results on GitHub
uses: yutailang0119/action-ktlint@v3
with:
report-path: build/ktlint-report.xml
continue-on-error: true
- name: Upload results Artifact
uses: actions/upload-artifact@v3
if: failure()
with:
name: results
path: |
**/build/ktlint-report.xml
if-no-files-found: error
retention-days: 14