Skip to content

Commit

Permalink
👷 Update ci.yml
Browse files Browse the repository at this point in the history
Publish code coverage
  • Loading branch information
jobearrr authored Jul 17, 2024
1 parent 47e967f commit 869935c
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift

name: CI

on:
Expand All @@ -18,5 +15,13 @@ jobs:
- uses: actions/checkout@v4
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v

- name: Test & publish code coverage to Code Climate
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: swift test -v --enable-code-coverage
debug: true
coverageLocations: |
${{github.workspace}}/.build/debug/codecov/*.json:lcov-json

0 comments on commit 869935c

Please sign in to comment.