-
Notifications
You must be signed in to change notification settings - Fork 137
test: add StrykerJS mutation testing foundation #847
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
Open
ToRyVand
wants to merge
1
commit into
lnp2pBot:main
Choose a base branch
from
ToRyVand:feat/issue-760-mutation-testing-stryker
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| name: Mutation Testing | ||
|
|
||
| # Non-blocking: this runs on a schedule and on demand, never gates merges. | ||
| # It reports how effective the test suite is at catching real bugs (mutation | ||
| # score), scoped to util/ for now. See issue #760. | ||
| on: | ||
| schedule: | ||
| - cron: '0 6 * * 1' # Weekly on Monday 06:00 UTC | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| mutation-test: | ||
| runs-on: ubuntu-latest | ||
| container: | ||
| # Official Node 20 image (Debian bookworm) — Node baked in, no third-party | ||
| # repo, same base used by the integration workflow. | ||
| image: 'node:20-bookworm' | ||
| steps: | ||
| - name: Install canvas build dependencies | ||
| run: | | ||
| apt-get update --yes | ||
| apt-get install --yes --no-install-recommends \ | ||
| build-essential pkg-config libcairo2-dev libpango1.0-dev \ | ||
| libjpeg-dev libgif-dev librsvg2-dev | ||
|
|
||
| - uses: actions/checkout@v4 | ||
|
|
||
| - run: npm ci | ||
|
|
||
| - name: Run mutation testing on util/ | ||
| run: npm run mutation-test:util | ||
| env: | ||
| NODE_ENV: test | ||
|
|
||
| - name: Upload mutation report | ||
| if: always() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: mutation-report | ||
| path: reports/mutation/ | ||
| if-no-files-found: ignore | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟠 Major
Pin both GitHub Actions to full SHAs.
actions/checkout@v4andactions/upload-artifact@v4use mutable tags. Pin them to their full 40-character commit SHAs to prevent supply-chain attacks where tags are retargeted to malicious code. Include the tag as a comment for readability.Use Dependabot or Renovate to automate SHA updates when new releases are available.
🧰 Tools
🪛 zizmor (1.26.1)
[warning] 26-26: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false
(artipacked)
[error] 26-26: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
[error] 37-37: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
🤖 Prompt for AI Agents