Skip to content
Merged
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
45 changes: 45 additions & 0 deletions templates/core/base/.github/workflows/mutation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Whether the tests catch changes to the code they run over, with core's shared mutation testing
# (erxes/erxes .github/workflows/mutation.yml). Pull requests get a comment; the branch runs open
# one `false-test` issue per folder and close it once every change is caught. It never blocks.
# Twice a week, so the last results stay cached: GitHub drops a cache nobody read for 7 days.
# 18:17 UTC is 02:17 in Ulaanbaatar, when the org's shared job slots are free. Give each plugin
# its own hour and minute between 17:00 and 21:59 UTC, so they don't all start at once.
name: Mutation tests

on:
pull_request:
paths: ['api/src/**', 'ui/src/**']
schedule:
- cron: '17 18 * * 0,3'
workflow_dispatch:

concurrency:
group: mutation-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

permissions:
contents: read

jobs:
mutation:
uses: erxes/erxes/.github/workflows/mutation.yml@postgre
permissions:
contents: read
issues: write
pull-requests: write
with:
# Left out: tests and their helpers, table declarations and migrations, start-up code no test
# runs, and .tsx screens, which only a browser checks.
mutate: |
api/src/**/*.ts
ui/src/**/*.ts
!**/*.test.ts
!**/*.d.ts
!**/__tests__/**
!api/src/test/**
!api/src/db/schema.ts
!api/src/db/schema/**
!api/src/db/migrate.ts
!api/src/migrate.ts
!api/src/main.ts
!api/src/telemetry.ts
Loading