-
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 #218 from nimblehq/develop
- Loading branch information
Showing
70 changed files
with
698 additions
and
101 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,20 @@ | ||
--- | ||
name: "Bug Report" | ||
about: "You found something that is not working. Report it so that it can be fixed. 👷" | ||
title: "Fix: " | ||
labels: "type : bug" | ||
--- | ||
|
||
## Issue | ||
|
||
Describe the issue you are facing. Show us the implementation: screenshots, gif, etc. | ||
|
||
## Expected | ||
|
||
Describe what should be the correct behaviour. | ||
|
||
## Steps to reproduce | ||
|
||
1. | ||
2. | ||
3. |
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,14 @@ | ||
--- | ||
name: "Chore" | ||
about: "Open a Chore for minor update." | ||
title: "Update " | ||
labels: "type : chore" | ||
--- | ||
|
||
## Why | ||
|
||
Describe the update details and why it's needed. | ||
|
||
## Who Benefits? | ||
|
||
Describe who will be the beneficiaries e.g. everyone, specific chapters, clients... |
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,14 @@ | ||
--- | ||
name: "Feature" | ||
about: "Open a feature issue to add new functionalities." | ||
title: "Add " | ||
labels: "type : feature" | ||
--- | ||
|
||
## Why | ||
|
||
Describe the big picture of the feature and why it's needed. | ||
|
||
## Who Benefits? | ||
|
||
Describe who will be the beneficiaries e.g. everyone, specific chapters, clients... |
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,22 @@ | ||
--- | ||
name: "Story" | ||
about: "Open a feature story" | ||
title: "[Type] As a user, I can " | ||
labels: "type : feature" | ||
--- | ||
|
||
## Why | ||
|
||
Describe the idea of the user story as in what the motive of the user story is. | ||
|
||
## Acceptance Criteria | ||
|
||
List down how the user story will be tested and what criteria are necessary for the user story to be accepted. | ||
|
||
## Design | ||
|
||
(Optional) Add design screenshots or Figma links for UI/UX-related stories. | ||
|
||
## Resources | ||
|
||
(Optional) Add useful resources such as links to documentation, implementation ideas, or best practices. |
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 |
---|---|---|
@@ -1,26 +1,12 @@ | ||
name: test | ||
name: Automatic pull request review | ||
|
||
on: | ||
pull_request: | ||
types: [assigned, opened, synchronize, reopened] | ||
types: [opened, reopened, edited, synchronize] | ||
|
||
jobs: | ||
Lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Run SwiftLint | ||
uses: norio-nomura/[email protected] | ||
with: | ||
args: --strict | ||
|
||
Test: | ||
name: Test | ||
review_pull_request: | ||
name: Pull request review by Danger | ||
runs-on: macOS-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
|
@@ -29,12 +15,19 @@ jobs: | |
access_token: ${{ github.token }} | ||
|
||
- uses: actions/checkout@v2 | ||
# Set fetch-depth (default: 1) to get whole tree | ||
with: | ||
fetch-depth: 0 | ||
|
||
|
||
- uses: actions/cache@v2 | ||
id: bunlderCache | ||
with: | ||
path: vendor/bundle | ||
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-gems- | ||
- name: Bundle install | ||
run: bundle install | ||
run: bundle install --path vendor/bundle | ||
|
||
- name: Cache Pods | ||
uses: actions/cache@v2 | ||
|
@@ -47,7 +40,16 @@ jobs: | |
- name: Install Pods Dependencies | ||
run: bundle exec pod install | ||
shell: bash | ||
|
||
- name: Build and Test | ||
run: bundle exec fastlane build_and_test | ||
env: | ||
CI: true | ||
|
||
- name: Export code coverage report | ||
run: bundle exec fastlane run_xcov | ||
|
||
- name: Review pull request by Danger | ||
env: | ||
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: bundle exec danger |
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,30 @@ | ||
name: Test Install Script | ||
|
||
on: | ||
push: | ||
branches: [ feature/**, bug/**, chore/** ] | ||
|
||
jobs: | ||
Test: | ||
name: Test | ||
runs-on: macOS-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Bundle install | ||
run: bundle install | ||
|
||
- name: Start Install Script for Template App | ||
run: sh make.sh --bundle-id co.nimblehq.template --bundle-id-staging co.nimblehq.template.staging --project-name TemplateApp | ||
|
||
- name: Build and Test | ||
run: bundle exec fastlane build_and_test | ||
env: | ||
CI: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
sources: | ||
- ProjectName/Sources | ||
- {PROJECT_NAME}/Sources | ||
templates: | ||
- tools/sourcery/templates | ||
output: | ||
ProjectNameTests/Sources/Mocks/Sourcery | ||
{PROJECT_NAME}Tests/Sources/Mocks/Sourcery | ||
args: | ||
autoMockableTestableImports: | ||
- ProjectName | ||
- {PROJECT_NAME} | ||
autoMockableImports: | ||
- RxSwift | ||
- RxCocoa |
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,11 @@ | ||
# file options | ||
--exclude Pods, Generated, **/*.generated.swift | ||
|
||
# rules | ||
--disable fileHeader | ||
--disable initCoderUnavailable | ||
--disable trailingCommas | ||
--disable wrapEnumCases | ||
--disable wrapMultilineStatementBraces | ||
--disable wrapSwitchCases | ||
--disable blankLinesAtStartOfScope |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# frozen_string_literal: true | ||
|
||
require './fastlane/Constants/Constants' | ||
|
||
# Warn when there is a big PR | ||
warn("This pull request is quite big (#{git.lines_of_code} lines changed), please consider splitting it into multiple pull requests.") if git.lines_of_code > 500 | ||
|
||
# Warn to encourage that labels should have been used on the PR | ||
warn("This pull request doesn't have any labels, please consider to add labels to this pull request.") if github.pr_labels.empty? | ||
|
||
# SwiftFormat | ||
swiftformat.binary_path = './Pods/SwiftFormat/CommandLineTool/swiftformat' | ||
swiftformat.exclude = %w(Pods/** **/*generated.swift) | ||
swiftformat.check_format | ||
|
||
# Swiftlint | ||
swiftlint.binary_path = './Pods/SwiftLint/swiftlint' | ||
swiftlint.config_file = '.swiftlint.yml' | ||
swiftlint.max_num_violations = 20 | ||
swiftlint.lint_files( | ||
inline_mode: true, | ||
fail_on_error: true, | ||
additional_swiftlint_args: '--strict' | ||
) | ||
|
||
xcresultPath = "#{Constants.TEST_OUTPUT_DIRECTORY_PATH}/#{Constants.TESTS_SCHEME}.xcresult" | ||
|
||
# Xcode summary | ||
xcode_summary.ignored_files = 'Pods/**' | ||
xcode_summary.inline_mode = true | ||
xcode_summary.report xcresultPath | ||
|
||
# Upload the report of the code coverage of the files changed in a pull request | ||
markdown File.read("#{Constants.XCOV_OUTPUT_DIRECTORY_PATH}/report.md") |
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 |
---|---|---|
@@ -1,4 +1,12 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "fastlane" | ||
gem "cocoapods" | ||
gem "fastlane" | ||
gem "xcov" | ||
gem "danger" | ||
gem "danger-swiftlint" | ||
gem "danger-xcode_summary" | ||
gem 'danger-swiftformat' | ||
|
||
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile') | ||
eval_gemfile(plugins_path) if File.exist?(plugins_path) |
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
Empty file.
Empty file.
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
Oops, something went wrong.