Skip to content

Commit

Permalink
Merge pull request #94 from marinofelipe/marinofelipe-patch-1
Browse files Browse the repository at this point in the history
Update CI workflow
  • Loading branch information
marinofelipe authored Apr 21, 2024
2 parents 32c6f68 + 2e3aac2 commit a80206e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

workflow_dispatch:

env:
Expand All @@ -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
Expand All @@ -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/**/*
token: ${{ secrets.CODECOV_TOKEN }}
exclude: Tests/**/*
7 changes: 6 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ end
default_platform(:ios)

platform :ios do

def is_ci
ENV['CI'] == 'true'
end

###-------------------------------- Tests ---------------------------###
desc "Run tests"
Expand All @@ -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

Expand Down

0 comments on commit a80206e

Please sign in to comment.