Skip to content
Merged
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
41 changes: 41 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,44 @@ jobs:
test:
name: Test
uses: recrafter-group/.github/.github/workflows/test.yml@version/2.0.0
mutation_test:
name: Mutation test
runs-on: ubuntu-22.04
permissions:
contents: read
pull-requests: write
steps:
- name: Check out Git repository
uses: actions/checkout@v4.2.2
- name: Set up Node.js
uses: actions/setup-node@v4.4.0
with:
node-version: 22
cache: npm
- name: Install Node.js dependencies
run: npm ci
- name: Run mutation tests
run: npm run test:mutation
- name: Upload mutation report
id: upload-mutation-report
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4.4.3
with:
name: mutation-report
path: ./.stryker/reports/
if-no-files-found: error
include-hidden-files: true
- name: Build mutation report comment
if: ${{ !cancelled() }}
run: |
echo '## Mutation testing' > mutation-comment.md
echo '' >> mutation-comment.md
cat .stryker/reports/mutation.md >> mutation-comment.md
echo '' >> mutation-comment.md
echo "[Download report](${{ steps.upload-mutation-report.outputs.artifact-url }})" >> mutation-comment.md
- name: Comment mutation report on pull request
if: ${{ !cancelled() }}
uses: marocchino/sticky-pull-request-comment@v3.0.2
with:
header: mutation
path: mutation-comment.md
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules/
.package/
.coverage/
.stryker/
*.log
Loading
Loading