Skip to content

Commit

Permalink
Merge 6b64016 into 9875d7e
Browse files Browse the repository at this point in the history
  • Loading branch information
TimOliver committed Feb 14, 2023
2 parents 9875d7e + 6b64016 commit ffc08ff
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 7 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,3 +244,30 @@ jobs:
run: |
set -o pipefail
xcodebuild build -workspace "${{ env.MACOS_EXAMPLE_WORKSPACE }}" -scheme "${{ env.EXAMPLE_SCHEME }}" -destination "${{ matrix.macOSDestination }}" ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO | bundle exec xcpretty -c
Danger:
name: Run Danger
if: github.event_name == 'pull_request'
runs-on: macos-12
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Cache RubyGems
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Install ruby gems.
run: bundle install

- name: Run Danger
run: bundle exec danger --verbose

6 changes: 2 additions & 4 deletions Examples/.swiftlint.yml → .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
included:
- IGListKitExamples
- IGListKitMessageExample
- IGListKitTodayExample
- Examples
- Source/IGListSwiftKit

excluded:
- Pods
Expand All @@ -18,7 +17,6 @@ disabled_rules:
- force_unwrapping
- comma
- line_length
- force_cast

force_cast: warning
force_try: warning
Expand Down
3 changes: 2 additions & 1 deletion Dangerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ if (added_source_files || deleted_source_files) && (ios_pods_not_updated || maco
end

swiftlint.verbose = true
swiftlint.config_file = './Examples/.swiftlint.yml'
swiftlint.config_file = '.swiftlint.yml'
swiftlint.lint_files(inline_mode: true)

4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source 'https://rubygems.org'

gem 'cocoapods', '~> 1.8.0'
gem 'danger', '~> 5.0'
gem 'danger-swiftlint', '~> 0.12.1'
gem 'danger', '~> 9.2.0'
gem 'danger-swiftlint', git: 'https://github.com/ashfurrow/danger-ruby-swiftlint.git', branch: 'master'
gem 'slather', '~> 2.7.4'
gem 'xcpretty', '~> 0.2.8'
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ extension ListCollectionContext {
fatalError()
}

print("Hello world!")

return cell
}

Expand Down

0 comments on commit ffc08ff

Please sign in to comment.