diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..77086de --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,44 @@ +name: 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 + 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 + 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