Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
pull_request:
branches:
- main
workflow_dispatch:

concurrency:
group: ${{ github.ref }}
Expand All @@ -20,11 +21,17 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- run: swift test --enable-code-coverage
- run: swift test --enable-code-coverage --build-path build-files
- name: Archive the build for debugging
uses: actions/upload-artifact@v4
with:
name: build-files-${{ matrix.os }}
path: |
build-files
- uses: ./
name: Run swifty-code-coverage
with:
build-path: .build
build-path: build-files
target: SamplePackageTests.xctest
is-spm: true
output: "coverage/lcov.info"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,4 @@ fastlane/test_output
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/
build-files
5 changes: 3 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,17 @@ runs:

- name: Archive the code coverage file (lcov)
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.output-artifact-name }}
path: |
${{ inputs.output }}

- name: Archive the code coverage file (textfile)
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage-textfile
path: |
coverage.txt

Loading