Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup GH Actions #146

Merged
merged 8 commits into from
Mar 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -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 .
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down