Skip to content

fix(deps): update dependency androidx.compose:compose-bom to v2023.05… #1225

fix(deps): update dependency androidx.compose:compose-bom to v2023.05…

fix(deps): update dependency androidx.compose:compose-bom to v2023.05… #1225

Workflow file for this run

name: Build
on:
pull_request:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
lfs: 'true'
- name: Check LFS file (install git lfs and commit screenshots again if failing)
run: git lfs fsck --pointers
- name: set up JDK 18
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 18
- name: ktlint
run: ./gradlew lintKotlin
- name: Tests & Detekt & Android lint
run: ./gradlew :catalog:assembleDebug lintDebug :ui:detektDebug :ui:testDebugUnitTest :lint:test
- name: Run Screenshot Tests
run: ./gradlew :ui:verifyPaparazziDebug
- uses: yutailang0119/action-android-lint@v3.1.0
name: App Lint errors to annotations
if: ${{ failure() }}
continue-on-error: true # lint may be ok
with:
xml_path: app/build/reports/lint-results-debug.xml
- uses: yutailang0119/action-android-lint@v3.1.0
name: Lib Lint errors to annotations
if: ${{ failure() }}
continue-on-error: true # lint may be ok
with:
xml_path: lib/build/reports/lint-results-debug.xml
- name: KTLint errors to annotations
if: ${{ failure() }}
run: |
jq --raw-output '[.[] | ({ f: .file } + ( .errors[] | { l: .line, c: .column, m: .message, r: .rule } )) | "::error file=catalog/\(.f),line=\(.l),col=\(.c)::\(.m) [\(.r)]" ] | join("\n")' catalog/build/reports/ktlint/main-lint.json || true
jq --raw-output '[.[] | ({ f: .file } + ( .errors[] | { l: .line, c: .column, m: .message, r: .rule } )) | "::error file=generator/\(.f),line=\(.l),col=\(.c)::\(.m) [\(.r)]" ] | join("\n")' generator/build/reports/ktlint/main-lint.json || true
jq --raw-output '[.[] | ({ f: .file } + ( .errors[] | { l: .line, c: .column, m: .message, r: .rule } )) | "::error file=icons/\(.f),line=\(.l),col=\(.c)::\(.m) [\(.r)]" ] | join("\n")' icons/build/reports/ktlint/main-lint.json || true
jq --raw-output '[.[] | ({ f: .file } + ( .errors[] | { l: .line, c: .column, m: .message, r: .rule } )) | "::error file=illustrations/\(.f),line=\(.l),col=\(.c)::\(.m) [\(.r)]" ] | join("\n")' illustrations/build/reports/ktlint/main-lint.json || true
jq --raw-output '[.[] | ({ f: .file } + ( .errors[] | { l: .line, c: .column, m: .message, r: .rule } )) | "::error file=ui/\(.f),line=\(.l),col=\(.c)::\(.m) [\(.r)]" ] | join("\n")' ui/build/reports/ktlint/main-lint.json || true
- uses: actions/upload-artifact@v3
if: ${{ failure() }}
with:
name: shots-results
path: ui/out/failures
- name: Build Dokka HTML
if: ${{ github.ref == 'refs/heads/main' }}
run: |
./gradlew :dokkaHtmlMultiModule --no-configuration-cache
- name: Deploy Dokka HTML
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/dokka/htmlMultiModule