Skip to content

Change Client, Document actor to class #652

Change Client, Document actor to class

Change Client, Document actor to class #652

Workflow file for this run

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 }}