From 945d005dd04e1470a3c83953f9c717e98eaaf64e Mon Sep 17 00:00:00 2001 From: Andy Uhnak Date: Tue, 12 Jul 2022 13:22:11 +0100 Subject: [PATCH 1/7] Upload Dsyms to Sentry when building Alpha --- Gemfile.lock | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 722a75731..033ac3108 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -159,6 +159,7 @@ GEM fastlane-plugin-brew (0.1.1) fastlane-plugin-diawi (2.1.0) rest-client (>= 2.0.0) + fastlane-plugin-sentry (1.12.1) fastlane-plugin-versioning (0.5.0) fastlane-plugin-xcodegen (1.1.0) fastlane-plugin-brew (~> 0.1.1) @@ -310,10 +311,11 @@ DEPENDENCIES cocoapods (~> 1.11.2) fastlane fastlane-plugin-diawi + fastlane-plugin-sentry fastlane-plugin-versioning fastlane-plugin-xcodegen slather xcode-install BUNDLED WITH - 2.3.9 + 2.3.14 From 46cfdc76cc1ce675684f50f80988a3a3819df72c Mon Sep 17 00:00:00 2001 From: Andy Uhnak Date: Tue, 12 Jul 2022 13:24:17 +0100 Subject: [PATCH 2/7] Changelog --- changelog.d/pr-6413.misc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/pr-6413.misc diff --git a/changelog.d/pr-6413.misc b/changelog.d/pr-6413.misc new file mode 100644 index 000000000..f1155bafd --- /dev/null +++ b/changelog.d/pr-6413.misc @@ -0,0 +1 @@ +Sentry: Upload Dsyms to Sentry when building Alpha From 1e2c0f23fd767d72d9b481602b6dc024a20114f2 Mon Sep 17 00:00:00 2001 From: Andy Uhnak Date: Tue, 12 Jul 2022 19:27:33 +0100 Subject: [PATCH 3/7] Pass secret as env --- .github/workflows/release-alpha.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release-alpha.yml b/.github/workflows/release-alpha.yml index 889f57a75..0bcd0834b 100644 --- a/.github/workflows/release-alpha.yml +++ b/.github/workflows/release-alpha.yml @@ -91,6 +91,7 @@ jobs: FASTLANE_USER: ${{ secrets.FASTLANE_USER }} FASTLANE_PASSWORD: ${{ secrets.FASTLANE_PASSWORD }} DIAWI_API_TOKEN: ${{ secrets.DIAWI_API_TOKEN }} + SENTRY_API_TOKEN: ${{ secrets.SENTRY_API_TOKEN }} - name: Add or update PR comment with Ad-hoc release informations uses: NejcZdovc/comment-pr@v1 From c003dd50076149824bd64ec215f1359567fb556d Mon Sep 17 00:00:00 2001 From: Andy Uhnak Date: Tue, 12 Jul 2022 20:07:36 +0100 Subject: [PATCH 4/7] Fix name --- .github/workflows/release-alpha.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-alpha.yml b/.github/workflows/release-alpha.yml index 0bcd0834b..f9c45d4f0 100644 --- a/.github/workflows/release-alpha.yml +++ b/.github/workflows/release-alpha.yml @@ -91,7 +91,7 @@ jobs: FASTLANE_USER: ${{ secrets.FASTLANE_USER }} FASTLANE_PASSWORD: ${{ secrets.FASTLANE_PASSWORD }} DIAWI_API_TOKEN: ${{ secrets.DIAWI_API_TOKEN }} - SENTRY_API_TOKEN: ${{ secrets.SENTRY_API_TOKEN }} + SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} - name: Add or update PR comment with Ad-hoc release informations uses: NejcZdovc/comment-pr@v1 From 02a3c45de07da023f11fa1c18ce22174f543ae3b Mon Sep 17 00:00:00 2001 From: Andy Uhnak Date: Wed, 13 Jul 2022 09:56:19 +0100 Subject: [PATCH 5/7] Cache gems via setup-ruby --- .github/workflows/release-alpha.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-alpha.yml b/.github/workflows/release-alpha.yml index f9c45d4f0..be483820d 100644 --- a/.github/workflows/release-alpha.yml +++ b/.github/workflows/release-alpha.yml @@ -49,13 +49,13 @@ jobs: restore-keys: | ${{ runner.os }}-pods- + # Note: it is recommended to use setup-ruby action to cache gems + # https://github.com/actions/cache/blob/main/examples.md#ruby---bundler - name: Cache Ruby gems - uses: actions/cache@v2 + uses: ruby/setup-ruby@v1 with: - path: vendor/bundle - key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} - restore-keys: | - ${{ runner.os }}-gems- + ruby-version: 2.6.9 + bundler-cache: true # Make sure we use the latest version of MatrixSDK - name: Reset MatrixSDK pod From 93aabb9c8288bb38335abae94d88e129b6f0aa15 Mon Sep 17 00:00:00 2001 From: Andy Uhnak Date: Wed, 13 Jul 2022 10:53:49 +0100 Subject: [PATCH 6/7] Update plugins --- .github/workflows/release-alpha.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release-alpha.yml b/.github/workflows/release-alpha.yml index be483820d..14b460919 100644 --- a/.github/workflows/release-alpha.yml +++ b/.github/workflows/release-alpha.yml @@ -69,6 +69,7 @@ jobs: run: | bundle config path vendor/bundle bundle install --jobs 4 --retry 3 + bundle exec fastlane update_plugins - name: Use right MatrixSDK versions run: bundle exec fastlane point_dependencies_to_related_branches From 1598a77ec2a4d623c50bc5d30b1732e198fb3886 Mon Sep 17 00:00:00 2001 From: Andy Uhnak Date: Thu, 14 Jul 2022 08:44:55 +0100 Subject: [PATCH 7/7] Install sentry-cli --- .github/workflows/release-alpha.yml | 11 +++++------ Brewfile | 1 + 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-alpha.yml b/.github/workflows/release-alpha.yml index 14b460919..f9c45d4f0 100644 --- a/.github/workflows/release-alpha.yml +++ b/.github/workflows/release-alpha.yml @@ -49,13 +49,13 @@ jobs: restore-keys: | ${{ runner.os }}-pods- - # Note: it is recommended to use setup-ruby action to cache gems - # https://github.com/actions/cache/blob/main/examples.md#ruby---bundler - name: Cache Ruby gems - uses: ruby/setup-ruby@v1 + uses: actions/cache@v2 with: - ruby-version: 2.6.9 - bundler-cache: true + path: vendor/bundle + key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} + restore-keys: | + ${{ runner.os }}-gems- # Make sure we use the latest version of MatrixSDK - name: Reset MatrixSDK pod @@ -69,7 +69,6 @@ jobs: run: | bundle config path vendor/bundle bundle install --jobs 4 --retry 3 - bundle exec fastlane update_plugins - name: Use right MatrixSDK versions run: bundle exec fastlane point_dependencies_to_related_branches diff --git a/Brewfile b/Brewfile index f3c727fda..e7b7707b9 100644 --- a/Brewfile +++ b/Brewfile @@ -1,2 +1,3 @@ brew "xcodegen" brew "mint" +brew "getsentry/tools/sentry-cli"