Skip to content

Bump actions/upload-artifact from 4.5.0 to 5.0.0 #147

Bump actions/upload-artifact from 4.5.0 to 5.0.0

Bump actions/upload-artifact from 4.5.0 to 5.0.0 #147

Workflow file for this run

name: Android CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
name: Build and Lint
runs-on: ubuntu-latest
# Only run on pushes or if pull request from fork
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
permissions:
checks: write # to publish unit test results
steps:
- name: Check out
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK 21
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
with:
java-version: '21'
distribution: 'temurin'
cache: gradle
- name: Gradle Info
run: ./gradlew -version
- name: Assemble Debug
run: ./gradlew assembleDebug
- name: Run Unit Tests
run: ./gradlew :dtareader:test
# To speed up lint check only run for release variant.
- name: Lint Release
run: ./gradlew :app:lintRelease
- name: Upload Lint Reports
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
if: ${{ always() }} # Also upload if lint errors.
with:
name: Lint reports
path: |
app/build/reports/lint-results-release.html