[SubMob/ScopeMob#32] Update Gradle to v9.3.0 (#244) #694
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: ScopeMob CI | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| - 'submodule/CCC' | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: macos-15 | |
| steps: | |
| - name: Setup Gradle Repo | |
| uses: Oztechan/Global/actions/setup-gradle-repo@4bda8a424485eab2b69d39883a78bcbe599874bb | |
| - name: Gradle Build | |
| run: ./gradlew build koverXmlReport --parallel | |
| # Run ./gradlew dependencies --write-locks before you commit if you want to update the lock files | |
| # When you update dependencies manually, you need to run this command locally to update the lock files | |
| # If there are any differences, exit code will be 1 and CI fails, that means dependencies were updated | |
| - name: Check for changes in lock files | |
| run: | | |
| ./gradlew dependencies --write-locks | |
| git diff --exit-code '**/*.lockfile' | |
| - name: Upload to Codecov | |
| uses: codecov/codecov-action@v5.5.2 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: build/reports/kover/report.xml | |
| - name: Upload to Codacy | |
| uses: codacy/codacy-coverage-reporter-action@v1.3.0 | |
| with: | |
| project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
| coverage-reports: build/reports/kover/report.xml | |
| - name: Notify slack fail | |
| if: failure() | |
| env: | |
| SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
| uses: voxmedia/github-action-slack-notify-build@v1.6.0 | |
| with: | |
| channel: submob | |
| status: FAILED | |
| color: danger |