-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #550 from nimblehq/release/4.10.0
Release - 4.10.0
- Loading branch information
Showing
56 changed files
with
937 additions
and
206 deletions.
There are no files selected for viewing
This file contains 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,3 @@ | ||
API_KEY_ID="" | ||
ISSUER_ID="" | ||
APPSTORE_CONNECT_API_KEY="" |
This file contains 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 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 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
64 changes: 64 additions & 0 deletions
64
.github/self_hosted_project_workflows/automatic_pull_request_review.yml
This file contains 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,64 @@ | ||
name: Automatic pull request review | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, edited, synchronize] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
review_pull_request: | ||
name: Pull request review by Danger | ||
runs-on: [self-hosted, macOS] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/cache@v3 | ||
id: bunlderCache | ||
with: | ||
path: vendor/bundle | ||
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-gems- | ||
- name: Setup ENV file | ||
env: | ||
ENV: ${{ secrets.ENV }} | ||
run: | | ||
touch .env | ||
echo $ENV | base64 --decode > .env | ||
- name: Bundle install | ||
run: bundle install --path vendor/bundle | ||
|
||
- name: Run Arkana | ||
run: bundle exec arkana | ||
|
||
- name: Cache Pods | ||
uses: actions/cache@v3 | ||
id: cocoapodCache | ||
with: | ||
path: Pods | ||
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-pods- | ||
- name: Install Pods Dependencies | ||
run: bundle exec pod install | ||
|
||
- name: Build and Test | ||
run: bundle exec fastlane buildAndTest | ||
env: | ||
CI: true | ||
|
||
- name: Clean up previous code coverage report | ||
run: bundle exec fastlane cleanUpOutput | ||
|
||
- name: Review pull request by Danger | ||
env: | ||
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: bundle exec danger |
104 changes: 104 additions & 0 deletions
104
.github/self_hosted_project_workflows/deploy_app_store.yml
This file contains 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,104 @@ | ||
name: Deploy Build To App Store | ||
|
||
# SECRETS needed: | ||
### SSH_PRIVATE_KEY for Match Repo | ||
### MATCH_PASS | ||
### APPSTORE_CONNECT_API_KEY | ||
### API_KEY_ID | ||
### ISSUER_ID | ||
|
||
on: | ||
push: | ||
branches: [ master, main ] | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Run SwiftLint | ||
uses: docker://norionomura/swiftlint:0.53.0_swift-5.7 | ||
with: | ||
args: swiftlint --strict | ||
|
||
build: | ||
name: Build | ||
runs-on: [self-hosted, macOS] | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
# Set fetch-depth (default: 1) to get whole tree | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install SSH key | ||
uses: webfactory/ssh-agent@v0.7.0 | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
- name: Setup ENV file | ||
env: | ||
ENV: ${{ secrets.ENV }} | ||
run: | | ||
touch .env | ||
echo $ENV | base64 --decode > .env | ||
- name: Bundle install | ||
run: bundle install | ||
|
||
- name: Run Arkana | ||
run: bundle exec arkana | ||
|
||
- name: Cache Pods | ||
uses: actions/cache@v3 | ||
id: cocoapodCache | ||
with: | ||
path: Pods | ||
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-pods- | ||
- name: Install Pods Dependencies | ||
run: bundle exec pod install | ||
shell: bash | ||
|
||
- name: Build and Test | ||
run: bundle exec fastlane buildAndTest | ||
|
||
- name: Match AppStore | ||
run: bundle exec fastlane syncAppStoreCodeSigning | ||
env: | ||
MATCH_PASSWORD: ${{ secrets.MATCH_PASS }} | ||
|
||
- name: Build App and Distribute to AppStore | ||
run: bundle exec fastlane buildAndUploadToAppStore | ||
env: | ||
APPSTORE_CONNECT_API_KEY: ${{ secrets.APPSTORE_CONNECT_API_KEY }} | ||
API_KEY_ID: ${{ secrets.API_KEY_ID }} | ||
ISSUER_ID: ${{ secrets.ISSUER_ID }} | ||
BUMP_APP_STORE_BUILD_NUMBER: "true" | ||
|
||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ format('v{0}({1})-{2}', env.VERSION_NUMBER, env.BUILD_NUMBER, env.TAG_TYPE) }} | ||
path: | | ||
${{ env.IPA_OUTPUT_PATH }} | ||
${{ env.DSYM_OUTPUT_PATH }} | ||
env: | ||
TAG_TYPE: App_Store | ||
|
||
- name: Remove keychain | ||
if: ${{ always() }} | ||
run: bundle exec fastlane removeKeychain | ||
continue-on-error: true |
105 changes: 105 additions & 0 deletions
105
.github/self_hosted_project_workflows/deploy_production_firebase.yml
This file contains 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,105 @@ | ||
name: Deploy Production Build To Firebase | ||
|
||
# SECRETS needed: | ||
### SSH_PRIVATE_KEY for Match Repo | ||
### MATCH_PASS | ||
### FIREBASE_GOOGLE_APPLICATION_CREDENTIALS_BASE64 | ||
|
||
on: | ||
push: | ||
branches: [ release/** ] | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
Lint: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Run SwiftLint | ||
uses: docker://norionomura/swiftlint:0.53.0_swift-5.7 | ||
with: | ||
args: swiftlint --strict | ||
|
||
build: | ||
name: Build | ||
runs-on: [self-hosted, macOS] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
# Set fetch-depth (default: 1) to get whole tree | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install SSH key | ||
uses: webfactory/ssh-agent@v0.7.0 | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
- name: Setup ENV file | ||
env: | ||
ENV: ${{ secrets.ENV }} | ||
run: | | ||
touch .env | ||
echo $ENV | base64 --decode > .env | ||
- name: Read Google Service Account | ||
id: firebase_service_account | ||
uses: timheuer/base64-to-file@v1.2 | ||
with: | ||
fileName: 'firebase_service_account.json' | ||
encodedString: ${{ secrets.FIREBASE_GOOGLE_APPLICATION_CREDENTIALS_BASE64 }} | ||
|
||
- name: Bundle install | ||
run: bundle install | ||
|
||
- name: Run Arkana | ||
run: bundle exec arkana | ||
|
||
- name: Cache Pods | ||
uses: actions/cache@v3 | ||
id: cocoapodCache | ||
with: | ||
path: Pods | ||
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-pods- | ||
- name: Install Pods Dependencies | ||
run: bundle exec pod install | ||
shell: bash | ||
|
||
- name: Build and Test | ||
run: bundle exec fastlane buildAndTest | ||
|
||
- name: Match Ad-hoc | ||
run: bundle exec fastlane syncAdHocProductionCodeSigning | ||
env: | ||
MATCH_PASSWORD: ${{ secrets.MATCH_PASS }} | ||
|
||
- name: Build Production App and Distribute to Firebase | ||
run: bundle exec fastlane buildProductionAndUploadToFirebase | ||
env: | ||
GOOGLE_APPLICATION_CREDENTIALS: ${{ steps.firebase_service_account.outputs.filePath }} | ||
|
||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ format('v{0}({1})-{2}', env.VERSION_NUMBER, env.BUILD_NUMBER, env.TAG_TYPE) }} | ||
path: | | ||
${{ env.IPA_OUTPUT_PATH }} | ||
${{ env.DSYM_OUTPUT_PATH }} | ||
env: | ||
TAG_TYPE: Production_Firebase | ||
|
||
- name: Remove keychain | ||
if: ${{ always() }} | ||
run: bundle exec fastlane removeKeychain | ||
continue-on-error: true |
Oops, something went wrong.