Skip to content

Fix: swift test

Fix: swift test #108

Workflow file for this run

name: Build
on:
push:
branches: [ master, develop ]
jobs:
build:
runs-on: macOS-13
steps:
- uses: actions/checkout@v3
- name: Xcode 15.2
run: |
sudo xcode-select -s '/Applications/Xcode_15.2.app/Contents/Developer'
xcodebuild -version
- name: Build
run: sh build.sh DLog-Package
- name: Test
run: |
swift build
swift test --enable-code-coverage
xcrun llvm-cov export -format="lcov" .build/debug/DLogPackageTests.xctest/contents/macos/DLogPackageTests -instr-profile .build/debug/codecov/default.profdata -ignore-filename-regex='Tests' -ignore-filename-regex='Net' > info.lcov
- name: Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}