Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SPM support and remove Cocoapods #21

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 17 additions & 43 deletions .github/workflows/build-and-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,63 +28,37 @@ jobs:
uses: actions/cache@v3
with:
path: |
.gems
.gems
~/.bundle
key: ${{ runner.os }}-cache-gems-${{ hashFiles('**/Gemfile.lock') }}

- name: Rake ⚙️
run: arch -arm64 rake
run: rake

- name: Run iOS tests ⚙️
run: arch -arm64 bundle exec fastlane test_scheme scheme:Mini-iOS configuration:Debug name:iOS
- name: Run tests ⚙️
run: rake test

- name: Upload coverage for iOS to Codecov 📋
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
xcode: true
xcode_archive_path: ./output/iOS/Mini-iOS.xcresult
flags: ios
fail_ci_if_error: true
name: codecov-ios
gcov_ignore: Tests/*

- name: Run tvOS tests ⚙️
run: arch -arm64 bundle exec fastlane test_scheme scheme:Mini-tvOS configuration:Debug name:tv

- name: Upload coverage for tvOS to Codecov 📋
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
xcode: true
xcode_archive_path: ./output/tv/Mini-tvOS.xcresult
flags: tv
fail_ci_if_error: true
name: codecov-tv
gcov_ignore: Tests/*

- name: Run mac tests ⚙️
run: arch -arm64 bundle exec fastlane test_scheme scheme:Mini-macOS configuration:Debug name:mac
- name: Generate lcov file 📈
run: |
xcrun llvm-cov export \
-format="lcov" \
--ignore-filename-regex=".build|.test-bundle|Tests/" \
.build/debug/MiniPackageTests.xctest/Contents/MacOS/MiniPackageTests \
-instr-profile .build/debug/codecov/default.profdata \
> report.lcov

- name: Upload coverage for mac to Codecov 📋
- name: Upload package tests coverage to Codecov 📋
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
xcode: true
xcode_archive_path: ./output/mac/Mini-macOS.xcresult
flags: mac
files: report.lcov
flags: package
fail_ci_if_error: true
name: codecov-mac
name: codecov-package
gcov_ignore: Tests/*

- name: Danger 🚨
run: bundle exec danger
if: github.event_name == 'pull_request'
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.THORBOT_GITHUB_API_TOKEN }}

- name: Save Output 📦
uses: actions/upload-artifact@v3
with:
name: output
path: ${{ github.workspace }}/output
path: ${{ github.workspace }}/report.lcov
6 changes: 0 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
source "https://rubygems.org"

gem "fastlane"
gem "overcommit"
gem "xcpretty-json-formatter"
gem "cocoapods"
gem "danger"
gem "danger-xcodebuild"
gem "danger-swiftlint"
gem "danger-xcov"
gem "danger-junit"
gem "danger-xcode_summary"

plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)
42 changes: 0 additions & 42 deletions MasMini-Swift.podspec

This file was deleted.

Loading
Loading