Skip to content

Commit

Permalink
Run build action on pull requests
Browse files Browse the repository at this point in the history
And update code coverage script
  • Loading branch information
pahnev authored Oct 12, 2023
1 parent 1ddc0e9 commit 1604cf3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Build&Test

on:
push:
branches:
- main
on: [push, pull_request]
branches:
- main

jobs:
build:
Expand All @@ -18,7 +17,7 @@ jobs:
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 to CodeCov.io
run: bash <(curl https://codecov.io/bash)
- name: Upload coverage reports to CodeCov.io
uses: codecov/codecod-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 1604cf3

Please sign in to comment.