From 2f30dc4bc68e0075d199c1f368f513e70500baf4 Mon Sep 17 00:00:00 2001 From: Liam Nichols Date: Tue, 2 Aug 2022 18:43:45 +0200 Subject: [PATCH 1/4] Update License information --- LICENSE | 21 +++++++++++++++++++ Sources/URLQueryEncoder/URLQueryEncoder.swift | 4 ---- .../URLQueryEncoderTests.swift | 4 ---- 3 files changed, 21 insertions(+), 8 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..9334ef7 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 Alexander Grebenyuk + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Sources/URLQueryEncoder/URLQueryEncoder.swift b/Sources/URLQueryEncoder/URLQueryEncoder.swift index 478e095..c73f2c2 100644 --- a/Sources/URLQueryEncoder/URLQueryEncoder.swift +++ b/Sources/URLQueryEncoder/URLQueryEncoder.swift @@ -1,7 +1,3 @@ -// The MIT License (MIT) -// -// Copyright (c) 2021 Alexander Grebenyuk (github.com/kean). - import Foundation public final class URLQueryEncoder { diff --git a/Tests/URLQueryEncoderTests/URLQueryEncoderTests.swift b/Tests/URLQueryEncoderTests/URLQueryEncoderTests.swift index 82f36ff..b59f766 100644 --- a/Tests/URLQueryEncoderTests/URLQueryEncoderTests.swift +++ b/Tests/URLQueryEncoderTests/URLQueryEncoderTests.swift @@ -1,7 +1,3 @@ -// The MIT License (MIT) -// -// Copyright (c) 2021 Alexander Grebenyuk (github.com/kean). - import XCTest import URLQueryEncoder From 7ffbab3bd2ab3440b19f75e036d9b4ea35652f7f Mon Sep 17 00:00:00 2001 From: Liam Nichols Date: Tue, 2 Aug 2022 22:40:54 +0200 Subject: [PATCH 2/4] Add GitHub Actions Workflow for CI checks (#2) --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1527ace --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: "HTTPHeaders CI" + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + macos: + name: macOS (Xcode ${{ matrix.xcode }}) + strategy: + fail-fast: false + matrix: + xcode: ["13.4.1", "13.2.1"] + include: + - xcode: "13.4.1" + macos: macOS-12 + - xcode: "13.2.1" + macos: macOS-11 + runs-on: ${{ matrix.macos }} + env: + DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + - name: Run Tests + run: swift test From fb2504efcbe5440102b94a6bf567424d9e5b9db7 Mon Sep 17 00:00:00 2001 From: Liam Nichols Date: Tue, 2 Aug 2022 22:44:56 +0200 Subject: [PATCH 3/4] Add CI workflows for testing Linux (#3) --- .github/workflows/ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1527ace..a12d1d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,3 +28,17 @@ jobs: uses: actions/checkout@v3 - name: Run Tests run: swift test + linux: + name: Linux (Swift ${{ matrix.swift }}) + strategy: + fail-fast: false + matrix: + swift: ["5.5", "5.6"] + runs-on: ubuntu-latest + container: swift:${{ matrix.swift }} + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + - name: Run Tests + run: swift test + From 4ce950479707ea109f229d7230ec074a133b15d7 Mon Sep 17 00:00:00 2001 From: Liam Nichols Date: Tue, 2 Aug 2022 22:46:41 +0200 Subject: [PATCH 4/4] Rename workflow to CI --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a12d1d7..77086de 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: "HTTPHeaders CI" +name: CI on: push: