diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c583030..621878f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,11 +1,7 @@ name: CI on: - push: - branches: [ main ] pull_request: - branches: [ main ] - workflow_dispatch: env: @@ -15,7 +11,6 @@ jobs: test: name: "Test" runs-on: macos-latest - if: github.event_name == 'pull_request' steps: - uses: actions/checkout@v2 - name: Check cache for Bundler dependencies @@ -39,8 +34,8 @@ jobs: - name: Execute fastlane `test` run: bundle exec fastlane test - name: Report code coverage - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v4 with: fail_ci_if_error: true - verbose: true - gcov_path_exclude: Tests/**/* \ No newline at end of file + token: ${{ secrets.CODECOV_TOKEN }} + exclude: Tests/**/* diff --git a/fastlane/Fastfile b/fastlane/Fastfile index cb1c9cb..2f5270d 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -14,6 +14,10 @@ end default_platform(:ios) platform :ios do + + def is_ci + ENV['CI'] == 'true' + end ###-------------------------------- Tests ---------------------------### desc "Run tests" @@ -24,7 +28,8 @@ platform :ios do scheme: "CurrencyText-Package", device: "iPhone 12", result_bundle: true, - output_directory: "fastlane/test_output" + output_directory: "fastlane/test_output", + xcodebuild_formatter: is_ci ? 'xcbeautify -q --is-ci --renderer github-actions' : 'xcbeautify -q' ) end