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

Deprecating Fastlane #194

Open
wants to merge 15 commits into
base: main
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
29 changes: 23 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@ name: CI Build
# Run for any commits to any branch
on: [push, pull_request]


env:
LANG: en_US.UTF-8
# CodeClimate
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
# Notifications
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_URL }}
FOLDER: GoogleFirebase
AWS_REGION: us-east-1
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
BUILDS_BUCKET: ${{ secrets.AWS_S3_BUILDS_BUCKET }}

jobs:

Expand All @@ -29,11 +33,24 @@ jobs:
chmod +x ./cc-test-reporter
./cc-test-reporter before-build

# Executes pod install and runs test against Debug target
- name: Run tests
uses: maierj/[email protected]
# Executes pod install
- name: Installing Dependencies
run: pod install --repo-update

# Downloads Firebase files
- name: Downloading Google Firebase plist files
run: |
aws s3 cp s3://$BUILDS_BUCKET/$FOLDER/ ios-base/Resources/$FOLDER/ --recursive

# Runs test on the develop scheme
- name: Running Test Suite
uses: mxcl/xcodebuild@v1
with:
lane: debug_develop
platform: iOS
code-coverage: true
workspace: ios-base.xcworkspace
scheme: ios-base-develop
configuration: Debug # no default, ie. `xcodebuild` decides itself

- name: Send test coverage report
run: ./cc-test-reporter after-build
Expand All @@ -44,4 +61,4 @@ jobs:
status: ${{ job.status }}
text: 'ios-base build status is ${{ job.status }}'
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
if: always()
if: always()
Empty file removed 6.0.1
Empty file.
7 changes: 0 additions & 7 deletions Gemfile

This file was deleted.

12 changes: 10 additions & 2 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ platform :ios, '14.0'
use_frameworks!
inhibit_all_warnings!

def shared_test_dependencies
inherit! :complete
pod 'Swifter', '~> 1.5.0'
end

target 'ios-base' do
pod 'RSSwiftNetworking/AlamofireProvider', '~> 1.1.0'
pod 'IQKeyboardManagerSwift', '~> 6.1.1'
Expand All @@ -24,7 +29,10 @@ target 'ios-base' do
# ------

target 'ios-baseUITests' do
inherit! :complete
pod 'Swifter', '~> 1.5.0'
shared_test_dependencies
end

target 'ios-baseUnitTests' do
shared_test_dependencies
end
end
21 changes: 2 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://img.shields.io/travis/rootstrap/ios-base/master.svg)](https://travis-ci.org/rootstrap/ios-base)
[![Build Status](https://img.shields.io/github/workflow/status/rootstrap/ios-base/CI%20Build)](https://github.com/rootstrap/ios-base/actions/workflows/ci.yml)
[![Maintainability](https://api.codeclimate.com/v1/badges/21b076c80057210cda75/maintainability)](https://codeclimate.com/github/rootstrap/ios-base/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/21b076c80057210cda75/test_coverage)](https://codeclimate.com/github/rootstrap/ios-base/test_coverage)
[![License](https://img.shields.io/github/license/rootstrap/ios-base.svg)](https://github.com/rootstrap/ios-base/blob/master/LICENSE.md)
Expand Down Expand Up @@ -107,29 +107,12 @@ We recommend using [AWS S3](https://docs.aws.amazon.com/AmazonS3/latest/userguid

Another alternative for managing sensitive files whithin the repo using Git-Secret can be found in the [**feature/git-secret**](https://github.com/rootstrap/ios-base/tree/feature/jenkins) branch

## CI/CD configuration with Bitrise (updated on Dec 12th 2021)
## CI/CD configuration with Bitrise

We are going to start using a tool called Bitrise to configure de CI/CD pipelines for mobiles apps.

--> For iOS apps you can find how to do it in this link: https://www.notion.so/rootstrap/iOS-CI-CD-01e00409a0144f5b85212bf889c627dd


## Automated Build and Deployment using Fastlane (DEPRECATED)

We use [Fastlane](https://docs.fastlane.tools) to automate code signing, building and release to TestFlight.

See details in [Fastlane folder](fastlane/README.md).

## Continuous Integration / Delivery (DEPRECATED)

We recommend [GitHub Actions](https://docs.github.com/en/actions) for integrating Fastlane into a CI/CD pipeline. You can find two workflows in the GitHub workflows folder:
* [ci.yml](.github/workflows/release.myl) : triggered on any push and PR, runs unit tests, coverage report and static analysis with [CodeClimate](https://github.com/codeclimate/codeclimate)
* [release.yml](.github/workflows/release.yml) : triggered on push to specific branches, builds, signs and submits to TestFlight

Alternatively you can merge branch [**feature/jenkins**](https://github.com/rootstrap/ios-base/tree/feature/jenkins) for some equivalent CICD boilerplate with **Jenkins**.

On both alternatives we assume usage of Fastlane match for managing signing Certificates and Profiles, and AWS S3 for storing other files containing third-party keys

## License

iOS-Base is available under the MIT license. See the LICENSE file for more info.
Expand Down
38 changes: 0 additions & 38 deletions fastlane/Appfile

This file was deleted.

Loading