diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e9f4c26..bf05906 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,7 @@ on: pull_request: branches: - main + workflow_dispatch: concurrency: group: ${{ github.ref }} @@ -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" diff --git a/.gitignore b/.gitignore index 330d167..5d00a06 100644 --- a/.gitignore +++ b/.gitignore @@ -88,3 +88,4 @@ fastlane/test_output # https://github.com/johnno1962/injectionforxcode iOSInjectionProject/ +build-files diff --git a/action.yml b/action.yml index 9e4cb92..09e44ff 100644 --- a/action.yml +++ b/action.yml @@ -48,7 +48,7 @@ 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: | @@ -56,8 +56,9 @@ runs: - 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 +