Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/run-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Android Pull Request & Master CI

on:
pull_request:
branches:
- '*'
# push:
# branches:
# - 'master'

jobs:
lint:
name: Run Lint
runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
# ssh-key: ${{ secrets.SSH_KEY }}
- name: setup JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Run lint && parse lint-results.xml && send report to PR
env:
PR_NUMBER: ${{ github.event.number }}
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
run: |
./gradlew app:lintDebug && ./gradlew parseAndSendLintResult -PgithubPullRequestId=$PR_NUMBER -PgithubToken=$GITHUB_TOKEN
4 changes: 4 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@
<string name="from">FROM</string>
<string name="to">TO</string>
<string name="error_message">Ops, there is an error, please restart the app…</string>

<!-- unused strings to test ci -->
<string name="unused_string1">Unused 123</string>
<string name="unused_string2">Unused 456</string>
</resources>