Skip to content

Build Package

Build Package #6

Workflow file for this run

name: Build Package
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: macOS-latest
steps:
- name: Get Sources
uses: actions/checkout@v2
- name: Build Package
run: swift build -v
- name: Run tests
run: swift test --enable-code-coverage -v
- name: Gather code coverage
run: xcrun llvm-cov export -format="lcov" .build/debug/FormViewPackageTests.xctest/Contents/MacOS/FormViewPackageTests -instr-profile .build/debug/codecov/default.profdata > coverage_report.lcov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: ./coverage_report.lcov
verbose: true