Bump dependencies #456
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: Continuous Integration | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| # Cancel any current or previous job from the same PR | |
| concurrency: | |
| group: ${{ github.head_ref || github.ref_name }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| with: | |
| validate-wrappers: true | |
| gradle-home-cache-cleanup: true | |
| - name: Build Android | |
| run: ./gradlew assembleDebug :wearApp:assembleDebug | |
| - name: Build Desktop | |
| run: ./gradlew :desktopApp:jvmJar | |
| - name: Run tests | |
| run: ./gradlew jvmTest | |
| - name: Run Android Lint | |
| run: ./gradlew :androidApp:lintDebug :wearApp:lintDebug | |
| - name: Run Detekt | |
| run: ./gradlew detekt | |
| - name: Upload debug APKs | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: debug-apks | |
| path: | | |
| androidApp/build/outputs/apk/debug/*.apk | |
| wearApp/build/outputs/apk/debug/*.apk | |
| retention-days: 14 | |
| - name: Upload lint reports | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: lint-reports | |
| path: | | |
| androidApp/build/reports/lint-results-debug.html | |
| wearApp/build/reports/lint-results-debug.html | |
| - name: Upload SARIF to GitHub | |
| if: always() | |
| uses: github/codeql-action/upload-sarif@v3 | |
| with: | |
| sarif_file: build/reports/detekt/detekt.sarif | |
| ios-check: | |
| runs-on: macos-latest | |
| if: github.event_name == 'push' || github.event_name == 'pull_request' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 2 | |
| - name: Check for iOS-related changes | |
| id: filter | |
| run: | | |
| if [ "${{ github.event_name }}" = "push" ]; then | |
| CHANGED=$(git diff --name-only HEAD~1 HEAD) | |
| else | |
| git fetch origin ${{ github.base_ref }} --depth=1 | |
| CHANGED=$(git diff --name-only FETCH_HEAD HEAD) | |
| fi | |
| if echo "$CHANGED" | grep -qE '^(shared/|iosApp/|gradle/|build-logic/|.*\.gradle\.kts$|gradle\.properties$)'; then | |
| echo "should_run=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "should_run=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Set up JDK 21 | |
| if: steps.filter.outputs.should_run == 'true' | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - name: Setup Gradle | |
| if: steps.filter.outputs.should_run == 'true' | |
| uses: gradle/actions/setup-gradle@v4 | |
| with: | |
| validate-wrappers: true | |
| gradle-home-cache-cleanup: true | |
| - name: Cache Kotlin/Native compiler | |
| if: steps.filter.outputs.should_run == 'true' | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.konan | |
| key: konan-${{ runner.os }}-${{ hashFiles('gradle/libs.versions.toml') }} | |
| restore-keys: konan-${{ runner.os }}- | |
| - name: Build iOS framework | |
| if: steps.filter.outputs.should_run == 'true' | |
| run: ./gradlew :shared:linkReleaseFrameworkIosSimulatorArm64 |