-
Notifications
You must be signed in to change notification settings - Fork 0
ALFMOB-33: Implement CI/CD using Github Actions #7
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
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
1bcf05e
ALFMOB-33: Add CI/CD pipeline for iOS
naveenmindera e172477
ALFMOB-33: Testing github actions
naveenmindera e34d8a4
ALFMOB-33: Fixed yml indendation
naveenmindera a8d162a
ALFMOB-33: Testing github actions
naveenmindera 578356a
ALFMOB-33: Fixed yml indendation
naveenmindera b8c9381
ALFMOB-33: Removed scheduler
naveenmindera d632737
ALFMOB-33: Fixed yml indendation
naveenmindera d5e63e6
ALFMOB-33: Fixed yml indendation
naveenmindera da2d22a
ALFMOB-33: Renamed workflow
naveenmindera 8f24f38
ALFMOB-33: Added fastlane too handle code signing
naveenmindera d6bb534
ALFMOB-33: Increment build number handled
naveenmindera 402853b
ALFMOB-33: Handled TF build with fastlane
naveenmindera 23ff9b6
ALFMOB-33: Update sh commands for build and test with fastlane known …
JoaoPinhoMinder a0c2f0c
ALFMOB-33: Add environment variables file and Brewfile
JoaoPinhoMinder b7dfe27
ALFMOB-33: Adjust environment variables and update script
JoaoPinhoMinder 2f49792
ALFMOB-33: Test adding current branch and make it as string
JoaoPinhoMinder 921160a
ALFMOB-33: Update branches definition
JoaoPinhoMinder 439f738
ALFMOB-33: Rever the update branches definition
JoaoPinhoMinder 9b0b2c5
ALFMOB-33: Remove '---' from workflow yml
JoaoPinhoMinder 5eabdf7
ALFMOB-33: Revert having the current branch to trigger action
JoaoPinhoMinder 88dbb56
ALFMOB-33: Update certificates lane and release build
JoaoPinhoMinder eaf2918
ALFMOB-33: Update Firebase SDK
JoaoPinhoMinder b808b0d
ALFMOB-33: Final clean-ups before review
JoaoPinhoMinder a8a53c5
ALFMOB-33: Code review improvements
JoaoPinhoMinder 6b3c65e
ALFMOB-33: Code review improvements 2
JoaoPinhoMinder 63ddbc4
ALFMOB-33: Code review improvements 3
JoaoPinhoMinder be0d14c
ALFMOB-33:Remove GoogleService-Info.plist files from the repository a…
JoaoPinhoMinder 65aa42b
ALFMOB-33: Added GoogleService-Info.plist files to secrets
JoaoPinhoMinder 7118af0
ALFMOB-33: Undo everything about git secrets
JoaoPinhoMinder 2f98de4
ALFMOB-33: Code review improvements
JoaoPinhoMinder c402a5e
ALFMOB-33: Code review improvements
JoaoPinhoMinder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
name: Alfie CI/CD | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
|
||
pull_request: | ||
branches: | ||
- 'main' | ||
|
||
workflow_dispatch: | ||
|
||
env: | ||
DEVELOPER_DIR: "/Applications/Xcode_16.2.app/Contents/Developer" | ||
ARTIFACTS_PATH: "/tmp/alfie-artifacts" | ||
DESTINATION: "platform=iOS Simulator,OS=latest,name=iPhone 16 Pro" | ||
SPM_CLONED_DEPENDENCIES_PATH: "/tmp/SourcePackages" | ||
|
||
jobs: | ||
run-tests: | ||
runs-on: macos-14 | ||
steps: | ||
- name: Install Homebrew formulas | ||
run: | | ||
brew update | ||
brew bundle install | ||
|
||
- name: bundle install | ||
run: | | ||
gem install bundler --no-document | ||
bundle install --jobs 4 --retry 3 | ||
|
||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run Tests | ||
run: bundle exec fastlane ios test --env default | ||
env: | ||
BUILD_CONFIGURATION: "Debug" | ||
|
||
- name: Archive Artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Test artifacts | ||
path: | | ||
${{ env.ARTIFACTS_PATH }}/*.xcresult | ||
${{ env.ARTIFACTS_PATH }}/*.junit | ||
retention-days: 7 | ||
|
||
release: | ||
needs: run-tests | ||
runs-on: macos-14 | ||
if: github.event_name == 'push' | ||
steps: | ||
- name: Install Homebrew formulas | ||
run: | | ||
brew update | ||
brew bundle install | ||
|
||
- name: bundle install | ||
run: | | ||
gem install bundler --no-document | ||
bundle install --jobs 4 --retry 3 | ||
|
||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up SSH for Bitbucket | ||
run: | | ||
mkdir -p ~/.ssh | ||
echo "${{ secrets.BITBUCKET_SSH_KEY }}" > ~/.ssh/id_rsa | ||
chmod 600 ~/.ssh/id_rsa | ||
ssh-keyscan -t rsa bitbucket.org >> ~/.ssh/known_hosts | ||
|
||
- name: Build and deploy release to TestFlight | ||
run: bundle exec fastlane ios release --env default | ||
env: | ||
BUILD_CONFIGURATION: "Release" | ||
APPSTORE_CONNECT_ISSUER_ID: ${{ secrets.APPSTORE_CONNECT_ISSUER_ID }} | ||
APPSTORE_CONNECT_KEY_CONTENT_BASE64: ${{ secrets.APPSTORE_CONNECT_KEY_CONTENT_BASE64 }} | ||
APPSTORE_CONNECT_KEY_ID: ${{ secrets.APPSTORE_CONNECT_KEY_ID }} | ||
APPSTORE_CONNECT_TEAM_ID: ${{ secrets.APPSTORE_CONNECT_TEAM_ID }} | ||
APP_IDENTIFIER: ${{ secrets.APP_IDENTIFIER }} | ||
GIT_EMAIL: ${{ secrets.GIT_EMAIL }} | ||
GIT_TOKEN: ${{ secrets.GIT_TOKEN }} | ||
GIT_USER_NAME: ${{ secrets.GIT_USER_NAME }} | ||
ITUNESCONNECT_TEAM_ID: ${{ secrets.ITUNESCONNECT_TEAM_ID }} | ||
MATCH_GIT_URL: ${{ secrets.MATCH_GIT_URL }} | ||
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 9 additions & 9 deletions
18
Alfie/Alfie.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,4 @@ | |
<key>GOOGLE_APP_ID</key> | ||
<string>1:135458332827:ios:c49379c8588ea2eca5e63e</string> | ||
</dict> | ||
</plist> | ||
</plist> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.