Fix slowdown by logging (#188) #655
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
name: CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: macos-14 | |
steps: | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: '15.3' | |
- uses: actions/checkout@v4 | |
- name: SwiftLint install | |
run: brew install swiftlint | |
- name: SwiftLint | |
run: swiftlint lint --strict | |
- name: SwiftFormat | |
run: swiftformat --lint . | |
- name: Run tests | |
run: swift test --enable-code-coverage -v --filter YorkieUnitTests | |
- name: Prepare Code Coverage | |
run: xcrun llvm-cov export -format="lcov" .build/debug/YorkiePackageTests.xctest/Contents/MacOS/YorkiePackageTests -instr-profile .build/debug/codecov/default.profdata > lcov.info | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
file: lcov.info | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |