From e051792b00858f6e4164abb4787c4a1b07003e9b Mon Sep 17 00:00:00 2001 From: Olivier Patry Date: Thu, 3 Oct 2024 18:05:57 +0200 Subject: [PATCH] w --- .github/workflows/build.yml | 164 ++++++++++++++++++------------------ 1 file changed, 82 insertions(+), 82 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 488bc818..270859f1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,29 +25,29 @@ jobs: pull-requests: write steps: - - uses: actions/checkout@v4 + # - uses: actions/checkout@v4 - - name: ☕ Setup JDK 21 - uses: actions/setup-java@v4 - with: - java-version: '21' - distribution: 'adopt' + # - name: ☕ Setup JDK 21 + # uses: actions/setup-java@v4 + # with: + # java-version: '21' + # distribution: 'adopt' - - name: 🐘 Setup Gradle - uses: gradle/actions/setup-gradle@v4 - with: - add-job-summary-as-pr-comment: on-failure + # - name: 🐘 Setup Gradle + # uses: gradle/actions/setup-gradle@v4 + # with: + # add-job-summary-as-pr-comment: on-failure - - name: 🔓 Decrypt secrets - env: - PLAYSTORE_SECRET_PASSPHRASE: ${{ secrets.PLAYSTORE_SECRET_PASSPHRASE }} - run: ./_ci/decrypt_secrets.sh + # - name: 🔓 Decrypt secrets + # env: + # PLAYSTORE_SECRET_PASSPHRASE: ${{ secrets.PLAYSTORE_SECRET_PASSPHRASE }} + # run: ./_ci/decrypt_secrets.sh - name: Šī¸ Generate credits for ':tasks-app-desktop' id: check_desktop_app_credits run: | - ./gradlew --no-daemon :tasks-app-desktop:exportLibraryDefinitions -PaboutLibraries.exportPath=src/main/resources - stale_credits=$(git diff tasks-app-desktop/src/main/resources/licenses_desktop.json) + # ./gradlew --no-daemon :tasks-app-desktop:exportLibraryDefinitions -PaboutLibraries.exportPath=src/main/resources + stale_credits="aaaaa" # $(git diff tasks-app-desktop/src/main/resources/licenses_desktop.json) if [ -n "${stale_credits}" ]; then { echo "## Stale credits for `:tasks-app-desktop`" @@ -60,75 +60,75 @@ jobs: echo ::set-output name=credits_diff_comment::$(./_ci/generate_github_comment_stale_credits.sh ":tasks-app-desktop") fi - - name: 🛎ī¸ Notify stale credits for ':tasks-app-desktop' - if: steps.check_desktop_app_credits.outputs.credits_diff_comment != '' - uses: actions/github-script@v7 - with: - script: | - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: '${{ steps.check_desktop_app_credits.outputs.credits_diff_comment }}' - }) + # - name: 🛎ī¸ Notify stale credits for ':tasks-app-desktop' + # if: steps.check_desktop_app_credits.outputs.credits_diff_comment != '' + # uses: actions/github-script@v7 + # with: + # script: | + # github.rest.issues.createComment({ + # issue_number: context.issue.number, + # owner: context.repo.owner, + # repo: context.repo.repo, + # body: '${{ steps.check_desktop_app_credits.outputs.credits_diff_comment }}' + # }) - - name: 🔨 Build Desktop App đŸ–Ĩī¸ - run: ./gradlew --no-daemon :tasks-app-desktop:assemble + # - name: 🔨 Build Desktop App đŸ–Ĩī¸ + # run: ./gradlew --no-daemon :tasks-app-desktop:assemble - - name: Šī¸ Generate credits for ':tasks-app-android' - id: check_android_app_credits - run: | - ./gradlew --no-daemon :tasks-app-android:exportLibraryDefinitions -PaboutLibraries.exportPath=src/main/assets - stale_credits=$(git diff tasks-app-android/src/main/assets/licenses_android.json) - if [ -n "${stale_credits}" ]; then - { - echo "## Stale credits for `:tasks-app-android`" - echo "```diff" - echo "${stale_credits}" - echo "```" - } >> "${GITHUB_STEP_SUMMARY}" - echo "::warning file=tasks-app-android/src/main/assets/licenses_android.json,title=Stale credits::Some licenses information are not up to date for ':tasks-app-android'" - # ::set-output is deprecated, but nothing works with multiline strings and GITHUB_OUTPUT :( - echo ::set-output name=credits_diff_comment::$(./_ci/generate_github_comment_stale_credits.sh ":tasks-app-android") - fi + # - name: Šī¸ Generate credits for ':tasks-app-android' + # id: check_android_app_credits + # run: | + # ./gradlew --no-daemon :tasks-app-android:exportLibraryDefinitions -PaboutLibraries.exportPath=src/main/assets + # stale_credits=$(git diff tasks-app-android/src/main/assets/licenses_android.json) + # if [ -n "${stale_credits}" ]; then + # { + # echo "## Stale credits for `:tasks-app-android`" + # echo "```diff" + # echo "${stale_credits}" + # echo "```" + # } >> "${GITHUB_STEP_SUMMARY}" + # echo "::warning file=tasks-app-android/src/main/assets/licenses_android.json,title=Stale credits::Some licenses information are not up to date for ':tasks-app-android'" + # # ::set-output is deprecated, but nothing works with multiline strings and GITHUB_OUTPUT :( + # echo ::set-output name=credits_diff_comment::$(./_ci/generate_github_comment_stale_credits.sh ":tasks-app-android") + # fi - - name: 🛎ī¸ Notify stale credits for ':tasks-app-android' - if: steps.check_android_app_credits.outputs.credits_diff_comment != '' - uses: actions/github-script@v7 - with: - script: | - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: '${{ steps.check_android_app_credits.outputs.credits_diff_comment }}' - }) + # - name: 🛎ī¸ Notify stale credits for ':tasks-app-android' + # if: steps.check_android_app_credits.outputs.credits_diff_comment != '' + # uses: actions/github-script@v7 + # with: + # script: | + # github.rest.issues.createComment({ + # issue_number: context.issue.number, + # owner: context.repo.owner, + # repo: context.repo.repo, + # body: '${{ steps.check_android_app_credits.outputs.credits_diff_comment }}' + # }) - - name: 🔨 Build Android App 📱 - env: - PLAYSTORE_SECRET_PASSPHRASE: ${{ secrets.PLAYSTORE_SECRET_PASSPHRASE }} - KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} - KEYSTORE_KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }} - run: | - ./gradlew --no-daemon :tasks-app-android:assembleStoreRelease \ - -Pci=true \ - -Pplaystore.keystore.file="${PWD}/_ci/tasksApp.keystore" \ - -Pplaystore.keystore.password="${KEYSTORE_PASSWORD}" \ - -Pplaystore.keystore.key_password="${KEYSTORE_KEY_PASSWORD}" + # - name: 🔨 Build Android App 📱 + # env: + # PLAYSTORE_SECRET_PASSPHRASE: ${{ secrets.PLAYSTORE_SECRET_PASSPHRASE }} + # KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} + # KEYSTORE_KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }} + # run: | + # ./gradlew --no-daemon :tasks-app-android:assembleStoreRelease \ + # -Pci=true \ + # -Pplaystore.keystore.file="${PWD}/_ci/tasksApp.keystore" \ + # -Pplaystore.keystore.password="${KEYSTORE_PASSWORD}" \ + # -Pplaystore.keystore.key_password="${KEYSTORE_KEY_PASSWORD}" - # `test` to trigger as much Jvm tests as possible - # `:tasks-app-android:testStoreReleaseUnitTest` to restrict to only specific flavor(store)+variant(release) for `:tasks-app-android` module. - # `-x :tasks-app-android:test` to remove all tests from `:tasks-app-android` module not being covered by `:tasks-app-android:testStoreReleaseUnitTest`. - # `-x testDebugUnitTest` to avoid triggering tests both in debug & release build. - # `-x :tasks-app-android:build` to avoid triggering useless build tasks (typically for unused flavors). - # Only rely on dependencies of `:tasks-app-android:testStoreReleaseUnitTest`. - - name: ✅ Test - run: | - ./gradlew --no-daemon test :tasks-app-android:testStoreReleaseUnitTest \ - -x :tasks-app-android:test -x testDebugUnitTest -x :tasks-app-android:build + # # `test` to trigger as much Jvm tests as possible + # # `:tasks-app-android:testStoreReleaseUnitTest` to restrict to only specific flavor(store)+variant(release) for `:tasks-app-android` module. + # # `-x :tasks-app-android:test` to remove all tests from `:tasks-app-android` module not being covered by `:tasks-app-android:testStoreReleaseUnitTest`. + # # `-x testDebugUnitTest` to avoid triggering tests both in debug & release build. + # # `-x :tasks-app-android:build` to avoid triggering useless build tasks (typically for unused flavors). + # # Only rely on dependencies of `:tasks-app-android:testStoreReleaseUnitTest`. + # - name: ✅ Test + # run: | + # ./gradlew --no-daemon test :tasks-app-android:testStoreReleaseUnitTest \ + # -x :tasks-app-android:test -x testDebugUnitTest -x :tasks-app-android:build - - name: 🗒ī¸ Publish Test Reports - uses: mikepenz/action-junit-report@v4 - if: success() || failure() - with: - report_paths: '**/build/test-results/test/TEST-*.xml' + # - name: 🗒ī¸ Publish Test Reports + # uses: mikepenz/action-junit-report@v4 + # if: success() || failure() + # with: + # report_paths: '**/build/test-results/test/TEST-*.xml'