Skip to content

Merge pull request #6 from pahnev/complete-existing-tests #55

Merge pull request #6 from pahnev/complete-existing-tests

Merge pull request #6 from pahnev/complete-existing-tests #55

Workflow file for this run

name: Build&Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v --enable-code-coverage
- name: Prepare Code Coverage
run: xcrun llvm-cov export -format="lcov" .build/debug/TMDBKitPackageTests.xctest/Contents/MacOS/TMDBKitPackageTests -instr-profile .build/debug/codecov/default.profdata > info.lcov
- name: Upload coverage reports to CodeCov.io
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}