Skip to content

Run build action on pull requests #48

Run build action on pull requests

Run build action on pull requests #48

Workflow file for this run

name: Build&Test
on: [push, pull_request]

Check failure on line 3 in .github/workflows/swift.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/swift.yml

Invalid workflow file

You have an error in your yaml syntax on line 3
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/codecod-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}