Skip to content

Commit

Permalink
Merge pull request #4 from pahnev/github-action-on-pr
Browse files Browse the repository at this point in the history
Run build action on pull requests
  • Loading branch information
pahnev authored Oct 12, 2023
2 parents 1ddc0e9 + e1bd28e commit b79d04d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ name: Build&Test

on:
push:
branches:
- main
branches:
- main
pull_request:
branches:
- main

jobs:
build:
Expand All @@ -18,7 +21,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/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit b79d04d

Please sign in to comment.