deps(android-legacy): bump gradle-wrapper from 9.4.1 to 9.5.0 in /android-legacy #63
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint | |
| on: | |
| push: | |
| branches: [ main, develop, 'feature/**', 'fix/**' ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| concurrency: | |
| group: lint-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint-android: | |
| name: Android Lint (ktlint + Android Lint) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: gradle | |
| - name: Set up Android SDK | |
| uses: android-actions/setup-android@v4 | |
| - name: Accept licenses | |
| run: yes | sdkmanager --licenses || true | |
| - name: Grant gradlew permission | |
| run: chmod +x android/gradlew | |
| - name: Run Android Lint | |
| run: | | |
| cd android | |
| ./gradlew lint --no-daemon | |
| - name: Run ktlint | |
| run: | | |
| cd android | |
| ./gradlew ktlintCheck --no-daemon | |
| - name: Upload Lint Report | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: android-lint-report | |
| path: | | |
| android/app/build/reports/lint-results-debug.html | |
| android/app/build/reports/ktlint/ | |
| retention-days: 7 | |
| lint-android-legacy: | |
| name: Android Legacy Lint (checkstyle) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up JDK 11 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '11' | |
| distribution: 'temurin' | |
| cache: gradle | |
| - name: Set up Android SDK | |
| uses: android-actions/setup-android@v4 | |
| - name: Accept licenses | |
| run: yes | sdkmanager --licenses || true | |
| - name: Grant gradlew permission | |
| run: chmod +x android-legacy/gradlew | |
| - name: Run Android Lint on Legacy | |
| run: | | |
| cd android-legacy | |
| ./gradlew lint --no-daemon | |
| - name: Run Checkstyle | |
| run: | | |
| cd android-legacy | |
| ./gradlew checkstyle --no-daemon | |
| - name: Upload Legacy Lint Report | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: android-legacy-lint-report | |
| path: android-legacy/app/build/reports/ | |
| retention-days: 7 | |
| lint-ios: | |
| name: iOS Lint (SwiftLint) | |
| runs-on: macos-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install SwiftLint | |
| run: brew install swiftlint | |
| - name: Run SwiftLint | |
| run: | | |
| cd ios | |
| swiftlint lint --reporter github-actions-logging | |
| - name: Upload SwiftLint Report | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: ios-swiftlint-report | |
| path: ios/swiftlint-report.json | |
| retention-days: 7 | |
| lint-iphoneos: | |
| name: iPhoneOS Lint (clang-tidy) | |
| runs-on: macos-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install clang tools | |
| run: brew install llvm | |
| - name: Run clang-tidy on ObjC sources | |
| run: | | |
| find iphoneos -name "*.m" -o -name "*.h" | while read f; do | |
| /usr/local/opt/llvm/bin/clang-tidy "$f" \ | |
| --checks='-*,clang-analyzer-*,objc-*' \ | |
| -- -x objective-c -fobjc-arc 2>/dev/null || true | |
| done | |
| lint-postmarketos: | |
| name: postmarketOS Lint (clang-tidy + cppcheck) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install tools | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -y clang-tidy cppcheck | |
| - name: Run cppcheck | |
| run: | | |
| cppcheck \ | |
| --enable=all \ | |
| --suppress=missingIncludeSystem \ | |
| --error-exitcode=1 \ | |
| postmarketos/src/ | |
| - name: Run clang-tidy on C sources | |
| run: | | |
| find postmarketos/src -name "*.c" -o -name "*.h" | while read f; do | |
| clang-tidy "$f" \ | |
| --checks='-*,clang-analyzer-*,readability-*,performance-*' \ | |
| -- -std=c99 2>/dev/null || true | |
| done | |
| lint-yaml: | |
| name: YAML Lint (CI files) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install yamllint | |
| run: pip install yamllint | |
| - name: Lint YAML files | |
| run: | | |
| yamllint .github/workflows/ .github/dependabot.yml |