mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-22 03:54:18 -04:00
Fixed #2969
This commit is contained in:
parent
a052704f9d
commit
0db67d4f3d
51
.github/workflows/pull_request.yml
vendored
51
.github/workflows/pull_request.yml
vendored
@ -1,13 +1,16 @@
|
||||
name: Pull requests
|
||||
|
||||
on: [pull_request]
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- '**'
|
||||
|
||||
jobs:
|
||||
|
||||
code_formatting_job:
|
||||
name: Code Formatting
|
||||
continue-on-error: true
|
||||
runs-on: ubuntu-18.04
|
||||
continue-on-error: true
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
@ -21,12 +24,12 @@ jobs:
|
||||
- name: Restore Cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gradle-
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gradle-
|
||||
|
||||
- name: Static Analysis
|
||||
run: ./gradlew ktlintCheck
|
||||
@ -42,8 +45,8 @@ jobs:
|
||||
|
||||
detekt:
|
||||
name: Detekt
|
||||
continue-on-error: true
|
||||
runs-on: ubuntu-18.04
|
||||
continue-on-error: true
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
@ -57,21 +60,21 @@ jobs:
|
||||
- name: Restore Cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gradle-
|
||||
${{ runner.os }}-gradle-
|
||||
|
||||
- name: Static Analysis
|
||||
run: ./gradlew detekt
|
||||
- name: Upload Lint Reports
|
||||
uses: actions/upload-artifact@v2
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: detekt-report
|
||||
path: '**/build/reports/detekt'
|
||||
- name: Static Analysis
|
||||
run: ./gradlew detekt
|
||||
- name: Upload Lint Reports
|
||||
uses: actions/upload-artifact@v2
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: detekt-report
|
||||
path: '**/build/reports/detekt'
|
||||
|
||||
|
||||
|
||||
@ -86,9 +89,9 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Set up JDK 11
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
- name: Set up JDK 11
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 11
|
||||
|
||||
- name: Restore Cache
|
||||
|
Loading…
x
Reference in New Issue
Block a user