-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add auto tests, lower swift tool version to 5.10.0, update README (#16)
* feat: keep up with ts-fsrs, update algorithm version to 5.0 - Delete original source file - Implemented FSRS 5.0 - Add tests * feat: add github actions auto tests - Create README.md - convert code tests coverage report to lcov - add codecov report - lower the package build tool version to 5.10.0
- Loading branch information
1 parent
129e4dc
commit 3d19310
Showing
3 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
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,44 @@ | ||
# This workflow will build a Swift project | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift | ||
|
||
name: Swift | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
paths-ignore: | ||
# - '.github/**' | ||
- ".gitignore" | ||
- "LICENSE" | ||
- "README.md" | ||
pull_request: | ||
branches: [ "main" ] | ||
paths-ignore: | ||
# - '.github/**' | ||
- ".gitignore" | ||
- "LICENSE" | ||
- "README.md" | ||
jobs: | ||
build: | ||
|
||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build | ||
run: swift build -v | ||
- name: Run tests | ||
run: swift test -v --enable-code-coverage | ||
|
||
- name: Test coverage | ||
uses: ningkaiqiang/spm-lcov-action@master | ||
with: | ||
output-file: ./coverage/lcov.info | ||
|
||
- uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: ./coverage/lcov.info | ||
flags: unittests | ||
name: codecov-umbrella | ||
fail_ci_if_error: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
A Swift implementation of FSRS5.0 | ||
|
||
[![codecov](https://codecov.io/gh/ningkaiqiang/swift-fsrs/graph/badge.svg?token=DQSJTROPFG)](https://codecov.io/gh/ningkaiqiang/swift-fsrs) |