Skip to content

Commit

Permalink
Merge pull request #1 from bfernandesbfs/ci
Browse files Browse the repository at this point in the history
Add CI
  • Loading branch information
bfernandesbfs authored Apr 13, 2021
2 parents 52636a5 + 6bdb96f commit 362b5a9
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Swift

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- name: Lint
run: |
set -o pipefail
swiftlint
- name: Build
run: |
set -o pipefail
swift build
- name: Run tests
run: |
set -o pipefail
swift test
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Interceptor

[![Swift](https://github.com/bfernandesbfs/Interceptor/actions/workflows/swift.yml/badge.svg)](https://github.com/bfernandesbfs/Interceptor/actions/workflows/swift.yml)

Interceptor is a Package that tries to solve problems when need to have some configurations to network API and its response. We need to intercept some information or add global configurations in centralized form based on the principle of single responsibility. The idea behind this package is simple, but the implementation requires a bit of preparation, look the image below.

![alt text](./Docs/Img/Img01.png)
Expand Down
4 changes: 3 additions & 1 deletion Tests/LinuxMain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ import XCTest
import InterceptorTests

var tests = [XCTestCaseEntry]()
tests += InterceptorTests.allTests()
tests += InterceptorChainTest.allTests()
tests += InterceptorRequestTests.allTests()
tests += InterceptorResponseTests.allTests()
XCTMain(tests)

0 comments on commit 362b5a9

Please sign in to comment.