Reputation: 2179
On my github action, it logged the following:
The full lint text report is located at:
/home/runner/work/honk/honk/app/build/intermediates/lint_intermediate_text_report/debug/lint-results-debug.txt
honk
is the name of my repo, but where do I find the lint-results-debug.txt
file?
This is how my android.yml
file is configured:
name: Android CI
on: [ pull_request ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.11
uses: actions/setup-java@v1
with:
java-version: 1.11
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Run tests
run: ./gradlew test
- name: Upload app to AppSweep with Gradle
env:
APPSWEEP_API_KEY: ${{ secrets.APPSWEEP_API_KEY }}
run: ./gradlew uploadToAppSweepRelease
Upvotes: 1
Views: 3872
Reputation: 1
Add this job after failed one to get log file
- name: Upload results to path
uses: actions/upload-artifact@v4
if: failure()
with:
name: results
path: ${{ github.workspace }}/app/build/intermediates/lint_intermediate_text_report/debug/lint-results-debug.txt
if-no-files-found: ignore
Then rerun workflow and you will be able to download these files at the bottom of summary page of failed job (Artifacts)
Upvotes: 0
Reputation: 691
As far as I know it gets discarded, they don't save any logs, if you don't save them intentionally.
You can do that with this action. Notice the Upload Lint Report
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.11
uses: actions/setup-java@v1
with:
java-version: 1.11
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Run tests
run: ./gradlew test
- name: Upload Lint Report to Github
uses: actions/upload-artifact@v3
with:
name: nightly
path: app/build/intermediates/lint_intermediate_text_report/debug/lint-results-debug.txt
retention-days: 10
# rest of the script
Though if you are just looking for the report, because of failed, you should get that in the console output with searching Failed.
Upvotes: 0
Reputation: 2934
The Github Doc Using workflow run logs
, says the following about finding/downloading
logs created by workflows
:
You can download the log files from your workflow run. You can also download a workflow's artifacts. For more information, see "Storing workflow data as artifacts." Read access to the repository is required to perform these steps.
You can follow the rest of the steps to find and download your desired files.
Upvotes: 0