-
-
Notifications
You must be signed in to change notification settings - Fork 424
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from signalapp/jrose/merge-swift
Merge libsignal-protocol-swift
- Loading branch information
Showing
35 changed files
with
3,018 additions
and
2 deletions.
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
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,51 @@ | ||
name: Swift | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
name: Build and Test | ||
|
||
runs-on: macOS-latest | ||
|
||
steps: | ||
- name: Install nightly rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
override: true | ||
profile: minimal | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Build libsignal-ffi | ||
run: cargo build --verbose -p libsignal-ffi | ||
|
||
- name: Build Swift and run tests | ||
run: swift test -v --enable-code-coverage | ||
working-directory: swift | ||
|
||
- name: Run lint | ||
run: swiftlint lint --reporter github-actions-logging | ||
working-directory: swift | ||
|
||
- name: Generate coverage report | ||
run: xcrun llvm-cov show --format=html --instr-profile .build/x86_64-apple-macosx/debug/codecov/default.profdata .build/x86_64-apple-macosx/debug/*.xctest/Contents/MacOS/* Sources --output-dir coverage-report | ||
working-directory: swift | ||
|
||
- name: Upload coverage report | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Coverage | ||
path: swift/coverage-report | ||
|
||
- name: Summarize coverage | ||
run: xcrun llvm-cov report --instr-profile .build/x86_64-apple-macosx/debug/codecov/default.profdata .build/x86_64-apple-macosx/debug/*.xctest/Contents/MacOS/* Sources | ||
working-directory: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
/.idea | ||
/target | ||
Cargo.lock | ||
/swift/.build | ||
|
||
*~ | ||
\#*\# | ||
|
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,9 @@ | ||
disabled_rules: | ||
- cyclomatic_complexity | ||
- force_try | ||
- function_body_length | ||
- function_parameter_count | ||
- identifier_name | ||
- line_length | ||
- trailing_comma | ||
- type_body_length |
Oops, something went wrong.