Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👷 Test Coverage Comment in External-Based Forks #163

Closed
Closed
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
10 changes: 10 additions & 0 deletions .github/workflows/test-createx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -157,13 +160,20 @@ 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') }}
uses: romeovs/[email protected]
with:
title: "`CreateX` Test Coverage Report"
delete-old-comments: true
working-directory: ./
lcov-file: ./lcov.info
github-token: ${{ secrets.GITHUB_TOKEN }}

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
test test test

# [`CreateX`](./src/CreateX.sol) – A Trustless, Universal Contract Deployer <!-- omit from toc -->

[![🕵️‍♂️ Test CreateX](https://github.com/pcaversaccio/createx/actions/workflows/test-createx.yml/badge.svg)](https://github.com/pcaversaccio/createx/actions/workflows/test-createx.yml)
Expand Down
Loading