diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..038a067d --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,17 @@ +name: Lint + +on: + pull_request: + push: + branches: master + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: Cyberbeni/install-swift-tool@v2 + with: + url: https://github.com/realm/SwiftLint + version: '*' + - run: swiftlint lint --strict . diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..1bb40ca7 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,19 @@ +name: Test + +on: + pull_request: + push: + branches: master + +jobs: + test: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - uses: Cyberbeni/install-swift-tool@v2 + with: + url: https://github.com/thii/xcbeautify + version: '*' + - run: | + set -o pipefail + swift test 2>&1 | xcbeautify diff --git a/Tests/LicensePlistTests/Entity/SwiftPackageManagerTests.swift b/Tests/LicensePlistTests/Entity/SwiftPackageManagerTests.swift index fd3424e0..a0355034 100644 --- a/Tests/LicensePlistTests/Entity/SwiftPackageManagerTests.swift +++ b/Tests/LicensePlistTests/Entity/SwiftPackageManagerTests.swift @@ -194,7 +194,6 @@ class SwiftPackageManagerTests: XCTestCase { func testParse() throws { let path = "https://raw.githubusercontent.com/mono0926/LicensePlist/master/Package.resolved" - // let path = "https://raw.githubusercontent.com/mono0926/LicensePlist/master/Tests/LicensePlistTests/Resources/Package.resolved" let content = try String(contentsOf: XCTUnwrap(URL(string: path))) let packages = SwiftPackage.loadPackages(content)