-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Additional package infrastructure work (#6)
* Add SPDX license header to all source files. Also remove many many unnecessary instances of "import Foundation" * Add updating of OS packages to Dockerfile * Add soundness check and API breakage check scripts. * Retool soundness script to do fancy rules-based stuff for license header checks, because why the heck not * Make GH Actions workflow do tests and such * Include derivation notice and derivation source license headers as required by Apache 2.0. * Specify sufficiently new macOS runner, disable tests on Linux for now due to XCTest lacking async support * add missing workaround for XCTest brokenness annoyances * Enable back-deployment for concurrency, hopefully. * Fix percent encoding handling of filter strings correctly by adding workaround implementation of `URLComponents.percentEncodedQueryItems` where it's needed. * Add workaround to the async test method so the tests can run on Linux, and reenable Linux testing.
- Loading branch information
Showing
63 changed files
with
915 additions
and
283 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: test | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
linux: | ||
runs-on: ubuntu-latest | ||
container: swift:5.5-focal | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
- name: Run tests with Thread Sanitizer | ||
run: swift test --enable-test-discovery --sanitize=thread | ||
- name: Verify release build | ||
timeout-minutes: 30 | ||
run: swift build -c release | ||
|
||
macos: | ||
runs-on: macos-11 | ||
steps: | ||
- name: Select latest available Xcode | ||
uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: latest | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
- name: Run tests | ||
timeout-minutes: 30 | ||
run: | | ||
swift test -Xlinker -rpath \ | ||
-Xlinker $(xcode-select -p)/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/macosx | ||
# windows: | ||
# runs-on: windows-latest | ||
# steps: | ||
# - uses: compnerd/gha-setup-swift@main | ||
# with: | ||
# branch: swift-5.5-release | ||
# tag: 5.5-RELEASE | ||
# - name: Check out code | ||
# uses: actions/checkout@v2 | ||
# - name: Run tests | ||
# run: swift test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
The Swift OneRoster Client Project | ||
================================== | ||
|
||
Copyright The Swift OneRoster Client Project | ||
|
||
The Swift OneRoster Client Project licenses this file to you under the | ||
Apache License, version 2.0 (the "License"); you may not use this file | ||
except in compliance with the License. You may obtain a copy of the | ||
License at: | ||
|
||
https://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
License for the specific language governing permissions and limitations | ||
under the License. | ||
|
||
------------------------------------------------------------------------------- | ||
|
||
This product contains a derivation of various scripts from SwiftNIO. | ||
|
||
* LICENSE (Apache License 2.0): | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* HOMEPAGE: | ||
* https://github.com/apple/swift-nio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 10 additions & 3 deletions
13
Sources/OneRoster/Client/Application+OneRosterClient.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.