Devops/reviewdog typescript (#25)
* Use reviewdog for TSC * Replace all `type Readonly<T>` with `interface T` * Use --frozen-lockfile for yarn * Give all actions a name * Fix yarn example
This commit is contained in:
30
.github/workflows/validate-android.yml
vendored
30
.github/workflows/validate-android.yml
vendored
@@ -27,11 +27,35 @@ jobs:
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 1.8
|
||||
- name: Setup node_modules
|
||||
run: yarn --cwd ..
|
||||
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||
- name: Restore node_modules from cache
|
||||
uses: actions/cache@v2
|
||||
id: yarn-cache
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- name: Install node_modules
|
||||
run: yarn install --frozen-lockfile --cwd ..
|
||||
|
||||
- name: Restore Gradle cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gradle-
|
||||
- name: Run Gradle Lint
|
||||
run: ./gradlew lint
|
||||
- uses: yutailang0119/action-android-lint@v1.0.2
|
||||
|
||||
- name: Parse Gradle Lint Report
|
||||
uses: yutailang0119/action-android-lint@v1.0.2
|
||||
with:
|
||||
xml_path: android/build/reports/lint-results.xml
|
||||
ktlint:
|
||||
|
Reference in New Issue
Block a user