From f6eee7c66212450a367d53c3a0c3e239d235e1fe Mon Sep 17 00:00:00 2001 From: Philipp Hofmann Date: Thu, 3 Nov 2022 11:52:19 +0100 Subject: [PATCH] ci: Call make for analyze (#2353) Call make analyze in CI, so you can quickly run analyze locally with the same config as in CI. --- .github/workflows/lint.yml | 3 +-- Makefile | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 95429f1707b..c724faee5d4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -37,8 +37,7 @@ jobs: steps: - uses: actions/checkout@v3 - run: ./scripts/ci-select-xcode.sh - - name: Run analyze - run: xcodebuild analyze -workspace Sentry.xcworkspace -scheme Sentry -configuration Release CLANG_ANALYZER_OUTPUT=html CLANG_ANALYZER_OUTPUT_DIR=analyzer | xcpretty -t && [[ -z `find analyzer -name "*.html"` ]] + - run: make analyze validate-podspec: name: Validate Podspec diff --git a/Makefile b/Makefile index 11c6df993a4..bb9ac2682cf 100644 --- a/Makefile +++ b/Makefile @@ -42,8 +42,8 @@ run-test-server: .PHONY: run-test-server analyze: - rm -r analyzer - xcodebuild analyze -workspace Sentry.xcworkspace -scheme Sentry -configuration Release CLANG_ANALYZER_OUTPUT=html CLANG_ANALYZER_OUTPUT_DIR=analyzer | rbenv exec bundle exec xcpretty -t + rm -rf analyzer + xcodebuild analyze -workspace Sentry.xcworkspace -scheme Sentry -configuration Release CLANG_ANALYZER_OUTPUT=html CLANG_ANALYZER_OUTPUT_DIR=analyzer -destination "platform=iOS Simulator,OS=latest,name=iPhone 11" CODE_SIGNING_ALLOWED="NO" | xcpretty -t && [[ -z `find analyzer -name "*.html"` ]] # Since Carthage 0.38.0 we need to create separate .framework.zip and .xcframework.zip archives. # After creating the zips we create a JSON to be able to test Carthage locally.