Skip to content

Commit

Permalink
Merge b58c42c into 05b5d14
Browse files Browse the repository at this point in the history
  • Loading branch information
sprzenus committed Apr 14, 2020
2 parents 05b5d14 + b58c42c commit a90eca4
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/examle.yml
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
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
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -7,3 +7,4 @@
/output
*.xcconfig
/muter_logs
*.lcov
1 change: 1 addition & 0 deletions README.md
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 a90eca4

Please sign in to comment.