Update github/codeql-action action to v4.35.0 #1031
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
| on: | |
| pull_request: | |
| merge_group: | |
| name: Check pull request | |
| concurrency: | |
| group: ${{ github.head_ref || github.ref_name }} | |
| cancel-in-progress: true | |
| jobs: | |
| check-codestyle: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup build environment | |
| uses: agrahn/android-password-store/.github/reusable-workflows/setup-gradle@94f64e65efce4d293d31d8429880084519df762e # develop | |
| with: | |
| java-version: 21 | |
| - name: Check codestyle | |
| shell: bash | |
| run: ./gradlew spotlessCheck | |
| - name: Upload Kotlin build report | |
| if: "${{ always() }}" | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| with: | |
| name: Build report (check-codestyle) | |
| path: build/reports/kotlin-build/ | |
| unit-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup build environment | |
| uses: agrahn/android-password-store/.github/reusable-workflows/setup-gradle@94f64e65efce4d293d31d8429880084519df762e # develop | |
| with: | |
| java-version: 21 | |
| - name: Run unit tests | |
| shell: bash | |
| run: ./gradlew test -PslimTests | |
| - name: (Fail-only) Upload test report | |
| if: "${{ failure() }}" | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| with: | |
| name: Test report (unit-tests) | |
| path: app/build/reports | |
| - name: Upload Kotlin build report | |
| if: "${{ always() }}" | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| with: | |
| name: Build report (unit-tests) | |
| path: build/reports/kotlin-build/ | |
| build-apks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup build environment | |
| uses: agrahn/android-password-store/.github/reusable-workflows/setup-gradle@94f64e65efce4d293d31d8429880084519df762e # develop | |
| with: | |
| java-version: 21 | |
| - name: Build debug APKs | |
| shell: bash | |
| run: ./gradlew assembleDebug | |
| - name: Upload Kotlin build report | |
| if: "${{ always() }}" | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| with: | |
| name: Build report (build-apks) | |
| path: build/reports/kotlin-build/ | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup build environment | |
| uses: agrahn/android-password-store/.github/reusable-workflows/setup-gradle@94f64e65efce4d293d31d8429880084519df762e # develop | |
| with: | |
| java-version: 21 | |
| - name: Run Lint | |
| shell: bash | |
| run: ./gradlew lint | |
| - name: Upload Kotlin build report | |
| if: "${{ always() }}" | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| with: | |
| name: Build report (lint) | |
| path: build/reports/kotlin-build/ |