mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 11:46:38 +08:00
update npm dependencies (#7202)
This commit is contained in:
parent
b2d0d98ec0
commit
b6e375b3d6
15
.github/workflows/test-pr.yml
vendored
15
.github/workflows/test-pr.yml
vendored
|
@ -31,12 +31,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
- name: npm install
|
- run: npm install
|
||||||
run: npm install
|
- run: npm run unit
|
||||||
- name: npm run unit
|
- run: npm run coverage
|
||||||
run: npm run unit
|
|
||||||
- name: npm run coverage
|
|
||||||
run: npm run coverage
|
|
||||||
|
|
||||||
integration:
|
integration:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -45,10 +42,8 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
- name: npm install
|
- run: npm install
|
||||||
run: npm install
|
|
||||||
- name: start gitea
|
- name: start gitea
|
||||||
working-directory: test/gitea/
|
working-directory: test/gitea/
|
||||||
run: npm install && npm run gitea
|
run: npm install && npm run gitea
|
||||||
- name: npm run integration
|
- run: npm run integration
|
||||||
run: npm run integration
|
|
||||||
|
|
12
package.json
12
package.json
|
@ -5,10 +5,10 @@
|
||||||
"test": "npm run eslint && npm run abaplint",
|
"test": "npm run eslint && npm run abaplint",
|
||||||
"merge": "abapmerge -f src/zabapgit.prog.abap -c zabapgit_standalone -o zabapgit.abap",
|
"merge": "abapmerge -f src/zabapgit.prog.abap -c zabapgit_standalone -o zabapgit.abap",
|
||||||
"merge.ci": "cp zabapgit.abap ci/zabapgit_standalone.prog.abap && cd ci && abaplint --format codeframe && cd ..",
|
"merge.ci": "cp zabapgit.abap ci/zabapgit_standalone.prog.abap && cd ci && abaplint --format codeframe && cd ..",
|
||||||
"build": "rm -rf output && abap_transpile test/abap_transpile.json",
|
"build": "rm -rf output && abap_transpile test/abap_transpile.json && cp -f src/ui/zabapgit_icon_font.w3mi.data.woff output/",
|
||||||
"unit": "npm run build && echo RUNNING && node output/index.mjs",
|
"unit": "npm run build && echo RUNNING && node output/index.mjs --skip-critical",
|
||||||
"coverage": "npm run unit && c8 node output/index.mjs && c8 report --reporter=html",
|
"coverage": "npm run unit && c8 node output/index.mjs --skip-critical && c8 report --reporter=html",
|
||||||
"integration": "rm -rf output && cp test/abap_transpile.json test/abap_transpile_int.json && sed -i 's/src,deps/test\\/src,src,deps/g' test/abap_transpile_int.json && abap_transpile test/abap_transpile_int.json && cp -f src/ui/zabapgit_icon_font.w3mi.data.woff output/ && echo RUNNING && node output/index.mjs",
|
"integration": "npm run build && echo RUNNING && node output/index.mjs --only-critical",
|
||||||
"abaplint": "abaplint --format codeframe",
|
"abaplint": "abaplint --format codeframe",
|
||||||
"eslint": "eslint src"
|
"eslint": "eslint src"
|
||||||
},
|
},
|
||||||
|
@ -25,9 +25,9 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@abaplint/cli": "^2.113.108",
|
"@abaplint/cli": "^2.113.108",
|
||||||
"@abaplint/database-sqlite": "^2.10.24",
|
"@abaplint/database-sqlite": "^2.10.24",
|
||||||
"@abaplint/runtime": "^2.10.38",
|
"@abaplint/runtime": "^2.10.42",
|
||||||
"express": "^4.21.2",
|
"express": "^4.21.2",
|
||||||
"@abaplint/transpiler-cli": "^2.10.38",
|
"@abaplint/transpiler-cli": "^2.10.42",
|
||||||
"globals": "^16.0.0",
|
"globals": "^16.0.0",
|
||||||
"abapmerge": "^0.16.6",
|
"abapmerge": "^0.16.6",
|
||||||
"c8": "^10.1.3",
|
"c8": "^10.1.3",
|
||||||
|
|
1
test/.gitignore
vendored
1
test/.gitignore
vendored
|
@ -1 +0,0 @@
|
||||||
abap_transpile_int.json
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"input_folder": "{src,deps}",
|
"input_folder": "{src,deps,test/src}",
|
||||||
"input_filter": [
|
"input_filter": [
|
||||||
"\\.w3mi.",
|
"\\.w3mi.",
|
||||||
"deps/",
|
"deps/",
|
||||||
|
|
|
@ -1,14 +1,34 @@
|
||||||
CLASS ltcl_test DEFINITION FOR TESTING DURATION SHORT RISK LEVEL CRITICAL FINAL.
|
CLASS ltcl_test DEFINITION FOR TESTING DURATION SHORT RISK LEVEL CRITICAL FINAL.
|
||||||
|
|
||||||
PRIVATE SECTION.
|
PRIVATE SECTION.
|
||||||
|
INTERFACES if_ftd_invocation_answer.
|
||||||
|
METHODS setup.
|
||||||
|
METHODS teardown.
|
||||||
METHODS list_branches FOR TESTING RAISING cx_static_check.
|
METHODS list_branches FOR TESTING RAISING cx_static_check.
|
||||||
METHODS list_no_blobs FOR TESTING RAISING cx_static_check.
|
METHODS list_no_blobs FOR TESTING RAISING cx_static_check.
|
||||||
METHODS commits_last_year FOR TESTING RAISING cx_static_check.
|
METHODS commits_last_year FOR TESTING RAISING cx_static_check.
|
||||||
|
|
||||||
|
DATA mi_env TYPE REF TO if_function_test_environment.
|
||||||
ENDCLASS.
|
ENDCLASS.
|
||||||
|
|
||||||
|
|
||||||
CLASS ltcl_test IMPLEMENTATION.
|
CLASS ltcl_test IMPLEMENTATION.
|
||||||
|
METHOD setup.
|
||||||
|
DATA lt_deps TYPE if_function_test_environment=>tt_function_dependencies.
|
||||||
|
|
||||||
|
INSERT 'SAPGUI_PROGRESS_INDICATOR' INTO TABLE lt_deps.
|
||||||
|
mi_env = cl_function_test_environment=>create( lt_deps ).
|
||||||
|
|
||||||
|
mi_env->get_double( 'SAPGUI_PROGRESS_INDICATOR' )->configure_call( )->ignore_all_parameters( )->then_answer( me ).
|
||||||
|
ENDMETHOD.
|
||||||
|
|
||||||
|
METHOD teardown.
|
||||||
|
mi_env->clear_doubles( ).
|
||||||
|
ENDMETHOD.
|
||||||
|
|
||||||
|
METHOD if_ftd_invocation_answer~answer.
|
||||||
|
RETURN.
|
||||||
|
ENDMETHOD.
|
||||||
|
|
||||||
METHOD list_branches.
|
METHOD list_branches.
|
||||||
|
|
||||||
|
|
|
@ -44,6 +44,7 @@ CLASS ltcl_test IMPLEMENTATION.
|
||||||
DATA lt_deps TYPE if_function_test_environment=>tt_function_dependencies.
|
DATA lt_deps TYPE if_function_test_environment=>tt_function_dependencies.
|
||||||
DATA lo_initial TYPE REF TO zif_abapgit_repo_srv.
|
DATA lo_initial TYPE REF TO zif_abapgit_repo_srv.
|
||||||
DATA lo_tr_object_table TYPE REF TO lcl_tr_object_table.
|
DATA lo_tr_object_table TYPE REF TO lcl_tr_object_table.
|
||||||
|
DATA lo_environment TYPE REF TO zcl_abapgit_web_environment.
|
||||||
|
|
||||||
zcl_abapgit_repo_srv=>inject_instance( lo_initial ).
|
zcl_abapgit_repo_srv=>inject_instance( lo_initial ).
|
||||||
|
|
||||||
|
@ -52,19 +53,29 @@ CLASS ltcl_test IMPLEMENTATION.
|
||||||
INSERT 'ENQUEUE_EZABAPGIT' INTO TABLE lt_deps.
|
INSERT 'ENQUEUE_EZABAPGIT' INTO TABLE lt_deps.
|
||||||
INSERT 'DEQUEUE_EZABAPGIT' INTO TABLE lt_deps.
|
INSERT 'DEQUEUE_EZABAPGIT' INTO TABLE lt_deps.
|
||||||
INSERT 'TR_OBJECT_TABLE' INTO TABLE lt_deps.
|
INSERT 'TR_OBJECT_TABLE' INTO TABLE lt_deps.
|
||||||
|
INSERT 'SAPGUI_PROGRESS_INDICATOR' INTO TABLE lt_deps.
|
||||||
|
|
||||||
mi_env = cl_function_test_environment=>create( lt_deps ).
|
mi_env = cl_function_test_environment=>create( lt_deps ).
|
||||||
mi_env->get_double( 'ENQUEUE_EZABAPGIT' )->configure_call( )->ignore_all_parameters(
|
mi_env->get_double( 'ENQUEUE_EZABAPGIT' )->configure_call( )->ignore_all_parameters(
|
||||||
)->then_answer( me ).
|
)->then_answer( me ).
|
||||||
mi_env->get_double( 'DEQUEUE_EZABAPGIT' )->configure_call( )->ignore_all_parameters(
|
mi_env->get_double( 'DEQUEUE_EZABAPGIT' )->configure_call( )->ignore_all_parameters(
|
||||||
)->then_answer( me ).
|
)->then_answer( me ).
|
||||||
|
mi_env->get_double( 'SAPGUI_PROGRESS_INDICATOR' )->configure_call( )->ignore_all_parameters(
|
||||||
|
)->then_answer( me ).
|
||||||
mi_env->get_double( 'TR_OBJECT_TABLE' )->configure_call( )->ignore_all_parameters(
|
mi_env->get_double( 'TR_OBJECT_TABLE' )->configure_call( )->ignore_all_parameters(
|
||||||
)->then_answer( lo_tr_object_table ).
|
)->then_answer( lo_tr_object_table ).
|
||||||
|
|
||||||
|
CREATE OBJECT lo_environment.
|
||||||
|
zcl_abapgit_injector=>set_environment( lo_environment ).
|
||||||
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
METHOD teardown.
|
METHOD teardown.
|
||||||
|
DATA li_environment TYPE REF TO zif_abapgit_environment.
|
||||||
|
|
||||||
mi_env->clear_doubles( ).
|
mi_env->clear_doubles( ).
|
||||||
|
|
||||||
|
zcl_abapgit_injector=>set_environment( li_environment ).
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
METHOD if_ftd_invocation_answer~answer.
|
METHOD if_ftd_invocation_answer~answer.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user