diff --git a/.github/workflows/run-lint.yml b/.github/workflows/run-lint.yml new file mode 100644 index 0000000..1d1491f --- /dev/null +++ b/.github/workflows/run-lint.yml @@ -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 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 095f0b3..c333c9e 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -5,4 +5,8 @@ FROM TO Ops, there is an error, please restart the app… + + + Unused 123 + Unused 456