mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 6.1.0 to 6.1.1. - [Release notes](https://github.com/pnpm/action-setup/releases) - [Commits](https://github.com/pnpm/action-setup/compare/ea17c68df8912ef543352723c149a84f56e3d413...73e46992e05b19abd31f2f3c20e0e7370d762115) --- updated-dependencies: - dependency-name: pnpm/action-setup dependency-version: 6.1.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
54 lines
1.6 KiB
YAML
54 lines
1.6 KiB
YAML
name: Mutation tests
|
|
|
|
# Stryker on the core libraries (stryker.config.mjs): encryption at rest,
|
|
# medication compliance, rollups, source ranking, unit conversion and backup
|
|
# validation. Too slow for a pull request; it runs once a night and on
|
|
# demand, and fails when a module's score drops below its floor in
|
|
# stryker.floors.json. The HTML report is uploaded either way.
|
|
on:
|
|
schedule:
|
|
- cron: "23 1 * * *"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
mutation:
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 120
|
|
name: mutation (core libraries)
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
|
|
|
|
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
with:
|
|
node-version: 22
|
|
cache: pnpm
|
|
|
|
- run: pnpm install --frozen-lockfile
|
|
|
|
- run: pnpm db:generate
|
|
|
|
- name: Run Stryker
|
|
run: pnpm exec stryker run --concurrency 4
|
|
|
|
# Without pipefail the step takes the exit status of `tee`, which is
|
|
# always 0, so a module under its floor could never fail the run.
|
|
- name: Check the per-module floors
|
|
shell: bash
|
|
run: |
|
|
set -o pipefail
|
|
node scripts/mutation-floors.mjs | tee -a "$GITHUB_STEP_SUMMARY"
|
|
|
|
- name: Upload the report
|
|
if: always()
|
|
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
with:
|
|
name: mutation-report
|
|
path: reports/mutation/
|
|
if-no-files-found: ignore
|
|
retention-days: 30
|