Skip to content

Commit

Permalink
Merge branch 'release/1.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeMatt committed Feb 15, 2021
2 parents 8e7b09d + 85e694b commit b0003ec
Show file tree
Hide file tree
Showing 407 changed files with 1,241 additions and 37,446 deletions.
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Lines starting with '#' are comments.
# Each line is a file pattern followed by one or more owners.

# These owners will be the default owners for everything in the repo.
* @JoeMatt
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Bug report
about: Create a report to help us improve
---

## Describe the bug

<!-- A clear and concise description of what the bug is. -->

## To Reproduce

<!--
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
-->

## Expected behavior

<!-- A clear and concise description of what you expected to happen. -->

## Screenshots/stack traces/Logs

<!-- If applicable, add attachments to help explain your problem. -->

## Version

<!-- Here please indicate the RxReachability version number you are using. -->

## Additional context

<!-- Add any other context about the problem here. -->
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Feature request
about: Suggest an idea for this project
---

## Overview

<!--Briefly describe the feature you are interested in seeing -->


## Reasons

<!-- Indicate your reasoning behind this request. Discuss alternatives that you may have considered. -->

## Priority

<!-- What timeframe would be best for you. Is this blocking a high traffic project release? -->

## Considerations / Context

<!-- Add any other context or examples about the feature request here -->
13 changes: 13 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## What does this PR do?

## Where should the reviewer start?

## How should this be manually tested?

## Any background context you want to provide?

## What are the relevant tickets?

## Screenshots (if appropriate)

## Questions
16 changes: 16 additions & 0 deletions .github/workflows/rebase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Rebase PR branch when someone comments /rebase
on:
issue_comment:
types: [created]
name: Automatic Rebase
jobs:
rebase:
name: Rebase
if: contains(github.event.comment.body, '/rebase')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Automatic Rebase
uses: cirrus-actions/rebase@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27 changes: 27 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Swift PM

on:
pull_request:
types:
- reopened
- opened
- synchronize

jobs:
swift-pm:

runs-on: macOS-latest

steps:
- uses: actions/checkout@master
- name: Swift Setup
uses: YOCKOW/[email protected]
with:
swift-version: '5.2.0' # This value is passed to swiftenv without modification.
- run: swift --version
- name: Resolve
run: swift package resolve
- name: Build
run: swift build -v
- name: Run tests
run: swift test --parallel -v
22 changes: 22 additions & 0 deletions .github/workflows/swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Swift Lint

on:
pull_request:
paths:
- ".github/workflows/swiftlint.yml"
- ".swiftlint.yml"
- "RxReachability-Example/**/*.swift"
- "Sources/**/*.swift"
- "Tests/**/*.swift"

jobs:
swift-lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: GitHub Action for SwiftLint
uses: norio-nomura/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DIFF_BASE: ${{ github.base_ref }}
24 changes: 16 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# OS X
Open # OS X
.DS_Store

# Xcode
.build/
build/
*.pbxuser
!default.pbxuser
*.mode1v3
Expand All @@ -11,16 +11,24 @@
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/
xcuserdata
*.xccheckout
profile
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xccheckout
# AppCode
.idea/

Carthage

# Bundler
.bundle
Demo/Pods
.ruby-version
.ruby-gemset
# Swift Package Manager
.build
Packages
Package.pins

fastlane/test_output
fastlane/report.xml
Pods
71 changes: 71 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
disabled_rules: # rule identifiers to exclude from running
- missing_docs
- unused_closure_parameter
- identifier_name
- weak_delegate
- cyclomatic_complexity
- function_body_length
- todo
- large_tuple

opt_in_rules: # some rules are only opt-in
- empty_count
# Find all the available rules by running:
# swiftlint rules

included: # paths to include during linting. `--path` is ignored if present.
- Sources
- Tests
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Carthage
- Pods

# configurable rules can be customized from this configuration file
# binary rules can set their severity level
force_cast: warning # implicitly
force_try:
severity: warning # explicitly

# rules that have both warning and error levels, can set just the warning level
# implicitly
line_length: 500

# they can set both implicitly with an array
type_body_length:
- 300 # warning
- 400 # error

# or they can set both explicitly
file_length:
warning: 600
error: 1200

# naming rules can set warnings/errors for min_length and max_length
# additionally they can set excluded names
type_name:
min_length: 3 # only warning
max_length: # warning and error
warning: 40
error: 50
excluded: # excluded via string
- T
- t

identifier_name:
min_length: # only min_length
error: 3 # only error
excluded: # excluded via string array
- id
- vc
- to
- a
- b
- t
- x
- y
- z
- p
- xy
- dx
- dy
- gr

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 11 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
osx_image: xcode10.2
language: objective-c
# references:
# * https://www.objc.io/issues/6-build-tools/travis-ci/
# * https://github.com/supermarin/xcpretty#usage

notifications:
email:
- [email protected]
osx_image: xcode11.5
language: objective-c

# Ensure that fastlane is at the latest version
before_install:
- brew update
- brew outdated carthage || brew upgrade carthage
- bundle install
- bundle exec pod install --repo-update
- brew install swiftlint
- brew install cocoapods
- pod repo update

jobs:
include:
- stage: test
script:
- bundle exec fastlane test
- stage: deploy
if: tag IS present
script:
- bundle exec fastlane deploy
script:
- swiftlint
- pod lib lint --allow-warnings
Loading

0 comments on commit b0003ec

Please sign in to comment.