Skip to content

Commit 39ac072

Browse files
committed
update ci setup
1 parent c478ef0 commit 39ac072

9 files changed

+4250
-36
lines changed

.github/workflows/build_downport.yaml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: build_downport
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
build_downport:
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 10
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: 20
19+
- run: npm ci
20+
- run: npm run downport
21+
- name: send to downport repository
22+
uses: peaceiris/actions-gh-pages@v3
23+
with:
24+
external_repository: abap2UI5-downports/addon-custom-controls
25+
user_name: 'github-actions[bot]'
26+
user_email: 'github-actions[bot]@users.noreply.github.com'
27+
publish_branch: main
28+
publish_dir: ./downport
29+
deploy_key: ${{ secrets.ACTIONS_DOWNPORT_DEPLOY_KEY }}
30+
destination_dir: src

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
downport
2+
node_modules
3+
output

abaplint-app.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"configurations": {
3+
"default": {
4+
"filename": "./ci/abaplint.jsonc"
5+
},
6+
"abap_cloud_readiness": {
7+
"filename": "./ci/abaplint-abap_cloud_readiness.jsonc"
8+
}
9+
}
10+
}

abaplint.jsonc

-36
This file was deleted.
+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"global": {
3+
"files": "/src/**/*.*"
4+
},
5+
"dependencies": [
6+
{
7+
"url": "https://github.com/abapedia/steampunk-2305-api-intersect-702",
8+
"folder": "/deps",
9+
"files": "/src/**/*.*"
10+
},
11+
{
12+
"url": "https://github.com/abap2UI5/abap2UI5",
13+
"folder": "/abap2UI5",
14+
"files": "/src/**/*.*"
15+
}
16+
],
17+
"syntax": {
18+
"version": "Cloud",
19+
"errorNamespace": "."
20+
},
21+
"rules": {
22+
"downport": true,
23+
"begin_end_names": true,
24+
"check_ddic": true,
25+
"check_include": true,
26+
"check_syntax": true,
27+
"global_class": true,
28+
"definitions_top": false,
29+
"implement_methods": true,
30+
"method_implemented_twice": true,
31+
"parser_error": true,
32+
"superclass_final": true,
33+
"unknown_types": true,
34+
"xml_consistency": true
35+
}
36+
}
37+

ci/abaplint-downport.jsonc

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"global": {
3+
"files": "/../downport/**/*.*"
4+
},
5+
"dependencies": [
6+
{
7+
"url": "https://github.com/abapedia/steampunk-2305-api",
8+
"folder": "/deps",
9+
"files": "/src/**/*.*"
10+
},
11+
{
12+
"url": "https://github.com/abap2UI5/abap2UI5-downport",
13+
"folder": "/abap2UI5",
14+
"files": "/src/**/*.*"
15+
}
16+
],
17+
"syntax": {
18+
"version": "v702",
19+
"errorNamespace": "."
20+
},
21+
"rules": {
22+
"downport": true,
23+
"begin_end_names": true,
24+
"check_ddic": true,
25+
"check_include": true,
26+
"check_syntax": true,
27+
"global_class": true,
28+
"definitions_top": true,
29+
"implement_methods": true,
30+
"method_implemented_twice": true,
31+
"parser_error": true,
32+
"superclass_final": true,
33+
"unknown_types": true,
34+
"xml_consistency": true
35+
}
36+
}

ci/abaplint.jsonc

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"global": {
3+
"files": "/src/**/*.*"
4+
},
5+
"dependencies": [
6+
{
7+
"url": "https://github.com/abapedia/steampunk-2305-api-intersect-702",
8+
"folder": "/deps",
9+
"files": "/src/**/*.*"
10+
},
11+
{
12+
"url": "https://github.com/abap2UI5/abap2UI5",
13+
"folder": "/abap2UI5",
14+
"files": "/src/**/*.*"
15+
}
16+
],
17+
"syntax": {
18+
"version": "v750",
19+
"errorNamespace": "."
20+
},
21+
"rules": {
22+
"downport": true,
23+
"begin_end_names": true,
24+
"check_ddic": true,
25+
"check_include": true,
26+
"check_syntax": true,
27+
"global_class": true,
28+
"definitions_top": false,
29+
"implement_methods": true,
30+
"method_implemented_twice": true,
31+
"parser_error": true,
32+
"superclass_final": true,
33+
"unknown_types": true,
34+
"xml_consistency": true
35+
}
36+
}

0 commit comments

Comments
 (0)