Skip to content

Commit

Permalink
Merge aef9b78 into 05b5d14
Browse files Browse the repository at this point in the history
  • Loading branch information
sprzenus committed Apr 14, 2020
2 parents 05b5d14 + aef9b78 commit 5f00da7
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/examle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ jobs:
DEVELOPMENT_TEAM_ID: ${{ secrets.DEVELOPMENT_TEAM_ID }}

steps:
- uses: actions/checkout@v2
- name: Checkout branch
uses: actions/checkout@v2

- name: Install gettext
run: |
brew install gettext
brew link --force gettext
brew link --force gettext
- name: Set up config files
run: envsubst < Restler-Example/Configuration/env_debug.xcconfig.tpl > Restler-Example/Configuration/Debug.xcconfig
Expand Down
23 changes: 20 additions & 3 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,41 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Checkout branch
uses: actions/checkout@v2
- name: SwiftLint
uses: norio-nomura/action-swiftlint@3.1.0

lint_podspec:
runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- name: Checkout branch
uses: actions/checkout@v2
- name: Lint podspec
run: pod lib lint

test:
runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- name: Checkout branch
uses: actions/checkout@v2

- name: Build
run: swift build

- name: Run tests
run: swift test --enable-code-coverage

- name: Generate code coverage report
run: xcrun llvm-cov export -format="lcov" .build/debug/RestlerPackageTests.xctest/Contents/MacOS/RestlerPackageTests
-instr-profile .build/debug/codecov/default.profdata
--ignore-filename-regex="Test|Mock"
> info.lcov

- name: Upload code coverage report
uses: coverallsapp/github-action@v1.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./info.lcov
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release

on:
tags:
- '[0-9]+.[0-9]+.[0-9]+'

jobs:
release:
runs-on: macos-latest

steps:
- name: Checkout branch
uses: actions/checkout@v2

- name: Set version in podspec
uses: maierj/fastlane-action@v1.4.0
with:
lane: set_podspec_version

- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

- name: Release to CocoaPods
run: pod trunk push Restler.podspec
env:
CI_COMMIT_TAG: ${{ steps.get_version.outputs.VERSION }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
/output
*.xcconfig
/muter_logs
*.lcov
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Package Build Status](https://github.com/railwaymen/restler/workflows/Package%20Actions/badge.svg)](https://github.com/railwaymen/restler/actions)
[![Example App Build Status](https://github.com/railwaymen/restler/workflows/Example%20App%20Actions/badge.svg)](https://github.com/railwaymen/restler/actions)
[![Coverage Status](https://coveralls.io/repos/github/railwaymen/restler/badge.svg?branch=master)](https://coveralls.io/github/railwaymen/restler?branch=master)

The Restler framework has been built to use features of the newest versions of Swift. Inspiration for it is Vapor library for building Server-side with Swift. What we love is functional programming, so you can build your desired request just calling some chained functions. The main goal of the framework is to provide nice interface for making API requests the easiest as possible and the fastest as possible.

Expand Down

0 comments on commit 5f00da7

Please sign in to comment.