diff --git a/.github/workflows/test-createx.yml b/.github/workflows/test-createx.yml index 268d033..d811c63 100644 --- a/.github/workflows/test-createx.yml +++ b/.github/workflows/test-createx.yml @@ -26,6 +26,9 @@ jobs: uses: actions/checkout@v4 with: submodules: recursive + # Ensure the pull request's head branch is checked out. + ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Install pnpm uses: pnpm/action-setup@v3 @@ -157,6 +160,12 @@ jobs: - name: Remove unnecessary `test` directory run: lcov --branch-coverage --remove lcov.info 'test/*' --output-file lcov.info --ignore-errors inconsistent,inconsistent + # Debugging step to confirm file generation and path + - name: Debug LCOV file + run: | + echo "Verifying LCOV file existence:" + ls -la ./lcov.info || echo "LCOV file not found" + - name: Post coverage report # See https://github.com/orgs/community/discussions/26829#discussioncomment-3253575. if: ${{ (github.event.pull_request.head.repo.full_name == github.repository && github.event_name == 'pull_request') }} @@ -164,6 +173,7 @@ jobs: with: title: "`CreateX` Test Coverage Report" delete-old-comments: true + working-directory: ./ lcov-file: ./lcov.info github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 6f67038..7dc236b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +test test test + # [`CreateX`](./src/CreateX.sol) – A Trustless, Universal Contract Deployer [![🕵️‍♂️ Test CreateX](https://github.com/pcaversaccio/createx/actions/workflows/test-createx.yml/badge.svg)](https://github.com/pcaversaccio/createx/actions/workflows/test-createx.yml)