-
Notifications
You must be signed in to change notification settings - Fork 4
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 #47 from AckeeCZ/github_actions
GitHub actions
- Loading branch information
Showing
38 changed files
with
664 additions
and
137 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
name: Build | ||
|
||
on: [pull_request, push] | ||
|
||
jobs: | ||
tests: | ||
name: Build | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: AckeeCZ/[email protected] | ||
- uses: actions/cache@v2 | ||
with: | ||
path: Carthage | ||
key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }} | ||
restore-keys: | | ||
${{ runner.os }}-carthage- | ||
- name: Build Carthage binary | ||
env: | ||
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
carthage checkout | ||
carthage build --platform iOS --cache-builds --no-skip-current |
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,33 @@ | ||
# https://help.github.com/en/github/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idname | ||
name: Checks | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
swiftlint: | ||
name: Swiftlint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: GitHub Action for SwiftLint | ||
uses: norio-nomura/[email protected] | ||
changelog: | ||
name: Changelog | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Changelog Reminder | ||
uses: peterjgrainger/[email protected] | ||
with: | ||
changelog_regex: 'CHANGELOG.md' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
podspec: | ||
name: Podspec | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Bundler dependencies | ||
run: bundle install | ||
- name: Lint podspec | ||
run: bundle exec pod lib lint |
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,44 @@ | ||
name: Deploy | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
carthage: | ||
name: Upload Carthage binary | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: AckeeCZ/[email protected] | ||
- uses: actions/cache@v1 | ||
with: | ||
path: Carthage | ||
key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }} | ||
restore-keys: | | ||
${{ runner.os }}-carthage- | ||
- name: Build | ||
run: carthage build --no-skip-current --cache-builds | ||
- name: Archive | ||
run: carthage archive --output "ACKReactiveExtensions.framework.zip" | ||
- uses: xresloader/upload-to-github-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
file: ACKReactiveExtensions.framework.zip | ||
tags: true | ||
draft: false | ||
cocoapods: | ||
name: Push podspec to Cocoapods trunk | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: AckeeCZ/[email protected] | ||
- name: Install gems | ||
run: bundle install | ||
- name: Push podspec | ||
run: bundle exec pod trunk push --allow-warnings | ||
env: | ||
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} |
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,24 @@ | ||
name: Documentation | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Generate Documentation | ||
uses: SwiftDocOrg/swift-doc@master | ||
with: | ||
inputs: "ACKReactiveExtensions" | ||
output: "Documentation" | ||
- name: Upload Documentation to Wiki | ||
uses: SwiftDocOrg/github-wiki-publish-action@master | ||
with: | ||
path: "Documentation" | ||
env: | ||
GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.CI_PERSONAL_ACCESS_TOKEN }} |
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.5 |
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 |
---|---|---|
|
@@ -19,6 +19,8 @@ DerivedData | |
*.hmap | ||
*.ipa | ||
|
||
.build | ||
|
||
# Bundler | ||
.bundle | ||
|
||
|
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,33 @@ | ||
whitelist_rules: | ||
- class_delegate_protocol | ||
- closing_brace | ||
- colon | ||
- comma | ||
- cyclomatic_complexity | ||
- empty_enum_arguments | ||
- file_length | ||
- force_cast | ||
- force_unwrapping | ||
- function_body_length | ||
- todo | ||
- trailing_semicolon | ||
- trailing_whitespace | ||
- vertical_whitespace | ||
- weak_delegate | ||
- overridden_super_call | ||
included: # paths to include during linting. `--path` is ignored if present. | ||
- ACKReactiveExtensions | ||
excluded: # paths to ignore during linting. Takes precedence over `included`. | ||
- Carthage | ||
- Pods | ||
force_cast: warning # implicitly | ||
function_body_length: | ||
- 100 # warning | ||
- 300 # error | ||
type_body_length: | ||
- 300 # warning | ||
- 500 # error | ||
file_length: | ||
warning: 500 | ||
error: 1200 | ||
# reporter: "csv" # reporter type (xcode, json, csv, checkstyle) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.