From 8067a7534b9e56439fad9411cf9321d18bfb9de7 Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Tue, 23 Feb 2021 13:59:42 +0100 Subject: [PATCH] Create validate-kotlin.yml --- .github/workflows/validate-kotlin.yml | 33 +++++++++++++++++++++++++++ .github/workflows/validate-swift.yml | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/validate-kotlin.yml diff --git a/.github/workflows/validate-kotlin.yml b/.github/workflows/validate-kotlin.yml new file mode 100644 index 0000000..746bff6 --- /dev/null +++ b/.github/workflows/validate-kotlin.yml @@ -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}} diff --git a/.github/workflows/validate-swift.yml b/.github/workflows/validate-swift.yml index aca407d..a2f679e 100644 --- a/.github/workflows/validate-swift.yml +++ b/.github/workflows/validate-swift.yml @@ -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