mirror of
https://github.com/signalapp/libsignal.git
synced 2024-09-20 12:02:18 +02:00
PR testing for Swift
This commit is contained in:
parent
79441611a7
commit
c7ca442410
3
.github/workflows/rust.yml
vendored
3
.github/workflows/rust.yml
vendored
@ -3,15 +3,16 @@ name: Rust
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
paths-ignore: ['swift']
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
paths-ignore: ['swift']
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
51
.github/workflows/swift.yml
vendored
Normal file
51
.github/workflows/swift.yml
vendored
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user