Skip to content

Commit

Permalink
* increased test coverage
Browse files Browse the repository at this point in the history
* added linting step to CI
* added Resource.updateUser(preferences:) helper
* relicensed to Apache 2 license
  • Loading branch information
aaronsky committed Jan 6, 2022
1 parent a4f5f85 commit 9c84d62
Show file tree
Hide file tree
Showing 24 changed files with 467 additions and 267 deletions.
28 changes: 27 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,30 @@ jobs:
steps:
- uses: actions/checkout@v1.0.0
- name: SwiftPM Build
run: swift test
run: make test
lint:
runs-on: macOS-11
env:
SWIFT_FORMAT_VERSION: '0.50500.0'
steps:
- name: Checkout
uses: actions/checkout@v1
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- uses: actions/cache@v2
id: cache-swift-format
with:
key: swift-format-build-${{ env.SWIFT_FORMAT_VERSION }}
path: ./swift-format/.build/release/swift-format
- name: install swift-format
if: steps.cache-swift-format.outputs.cache-hit != 'true'
run: |-
git clone https://github.com/apple/swift-format.git
pushd swift-format
git checkout "tags/${{ env.SWIFT_FORMAT_VERSION }}"
swift build -c release
popd
- name: lint
run: make lint SWIFT_FORMAT_BIN=./swift-format/.build/release/swift-format

115 changes: 0 additions & 115 deletions .swiftpm/xcode/xcshareddata/xcschemes/WaniKani-Package.xcscheme

This file was deleted.

88 changes: 0 additions & 88 deletions .swiftpm/xcode/xcshareddata/xcschemes/apitest.xcscheme

This file was deleted.

16 changes: 0 additions & 16 deletions Examples/apitest/main.swift

This file was deleted.

Loading

0 comments on commit 9c84d62

Please sign in to comment.