snapshot of https://github.com/frappe/crm.git (develop, 2026-09-18; blobs > 131072B omitted)
Some checks failed
Frontend / Unit Tests & Coverage (push) Has been skipped
Regenerate POT file (translatable strings) / Regenerate POT file (develop) (push) Failing after 1m13s
Regenerate POT file (translatable strings) / Regenerate POT file (main-hotfix) (push) Failing after 6s
Server / Tests (frappe ${{ matrix.frappe-branch }}) (push) Has been skipped
Server / Resolve frappe matrix (push) Failing after 1s
Frontend / Lint (push) Failing after 1s
Frontend / Production Build (push) Failing after 1s
Server / Coverage Wrap Up (push) Has been skipped
Frontend / Coverage Wrap Up (push) Has been skipped
Some checks failed
Frontend / Unit Tests & Coverage (push) Has been skipped
Regenerate POT file (translatable strings) / Regenerate POT file (develop) (push) Failing after 1m13s
Regenerate POT file (translatable strings) / Regenerate POT file (main-hotfix) (push) Failing after 6s
Server / Tests (frappe ${{ matrix.frappe-branch }}) (push) Has been skipped
Server / Resolve frappe matrix (push) Failing after 1s
Frontend / Lint (push) Failing after 1s
Frontend / Production Build (push) Failing after 1s
Server / Coverage Wrap Up (push) Has been skipped
Frontend / Coverage Wrap Up (push) Has been skipped
This commit is contained in:
42
.github/actions/run-server-tests/action.yml
vendored
Normal file
42
.github/actions/run-server-tests/action.yml
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
name: Run CRM Server Tests
|
||||
description: Execute bench tests for the CRM app with optional coverage collection.
|
||||
inputs:
|
||||
bench-path:
|
||||
description: Absolute path to the bench directory
|
||||
required: false
|
||||
default: "/home/runner/frappe-bench"
|
||||
site:
|
||||
description: Bench site on which to run tests
|
||||
required: false
|
||||
default: "test_site"
|
||||
app:
|
||||
description: App to test
|
||||
required: false
|
||||
default: "crm"
|
||||
enable-coverage:
|
||||
description: When true, include coverage flag during test execution
|
||||
required: false
|
||||
default: "true"
|
||||
type:
|
||||
description: Bench command type environment variable
|
||||
required: false
|
||||
default: "server"
|
||||
ci-build-id:
|
||||
description: CI build identifier propagated to bench commands
|
||||
required: false
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Run Tests
|
||||
shell: bash
|
||||
working-directory: ${{ inputs.bench-path }}
|
||||
env:
|
||||
TYPE: ${{ inputs.type }}
|
||||
CI_BUILD_ID: ${{ inputs.ci-build-id }}
|
||||
run: |
|
||||
bench --site "${{ inputs.site }}" set-config allow_tests true
|
||||
if [ "${{ inputs.enable-coverage }}" = "true" ]; then
|
||||
bench --site "${{ inputs.site }}" run-tests --app "${{ inputs.app }}" --coverage
|
||||
else
|
||||
bench --site "${{ inputs.site }}" run-tests --app "${{ inputs.app }}"
|
||||
fi
|
||||
Reference in New Issue
Block a user