Create validate-kotlin.yml

This commit is contained in:
Marc Rousavy 2021-02-23 13:59:42 +01:00
parent 73b9ee1d66
commit 8067a7534b
2 changed files with 34 additions and 1 deletions

33
.github/workflows/validate-kotlin.yml vendored Normal file
View File

@ -0,0 +1,33 @@
name: Validate Kotlin
on:
push:
branches:
- master
paths:
- '.github/workflows/validate-kotlin.yml'
- 'android/**'
pull_request:
paths:
- '.github/workflows/validate-kotlin.yml'
- 'android/**'
jobs:
AndroidLint:
name: AndroidLint
runs-on: ubuntu-latest
env:
working-directory: ./android
steps:
- uses: actions/checkout@v2
- name: Setup JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Run Gradle Lint
run: ./gradlew lint
working-directory: ${{env.working-directory}}
- uses: yutailang0119/action-android-lint@v1.0.2
with:
xml_path: build/reports/lint-results.xml
working-directory: ${{env.working-directory}}

View File

@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: GitHub Action for SwiftLint with --strict
- name: Run SwiftLint GitHub Action (--strict)
uses: norio-nomura/action-swiftlint@3.2.1
with:
args: --strict