Skip to content

Downport #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 10, 2025
Merged
Show file tree
Hide file tree
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
30 changes: 30 additions & 0 deletions .github/abaplint/abap_702.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"global": {
"files": "/../../src/**/*.*"
},
"dependencies": [
{
"url": "https://github.com/open-abap/open-abap-core",
"folder": "/deps",
"files": "/src/**/*.*"
}
],
"syntax": {
"version": "v702",
"errorNamespace": "."
},
"rules": {
"downport": true,
"begin_end_names": true,
"check_ddic": true,
"check_include": true,
"check_syntax": true,
"global_class": true,
"implement_methods": true,
"method_implemented_twice": true,
"parser_error": true,
"superclass_final": true,
"unknown_types": true,
"xml_consistency": true
}
}
23 changes: 23 additions & 0 deletions .github/workflows/ABAP_702.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: ABAP_702

on:
push:
branches: [702]

permissions:
contents: read

jobs:
ABAP_702:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
with:
ref: 702
- uses: actions/setup-node@v3
with:
node-version: 20
- run: npm ci
- run: npm run init_downport
- run: npx abaplint .github/abaplint/abap_702.jsonc
40 changes: 40 additions & 0 deletions .github/workflows/auto_downport.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: auto_downport

on:
push:
branches: [standard]

jobs:
auto_downport:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'

- run: npm ci
- run: npm run init_downport
- run: npm run downport
- run: npm run cleanup_downport

- name: Commit Changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git commit -m "Downport changes"

- name: Switch to Branch 702
run: git checkout -b 702

- name: Push Changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: 702
force: true
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
downport
node_modules
output
112 changes: 112 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "abap2ui5-samples",
"private": true,
"version": "1.0.0",
"description": "abap2UI5-local",
"scripts": {
"syfixes": "find . -type f -name '*.abap' -exec sed -i -e 's/ RAISE EXCEPTION TYPE cx_sy_itab_line_not_found/ ASSERT 1 = 0/g' {} + ",
"downport": "abaplint --fix .github/abaplint/abap_702.jsonc && npm run syfixes && cp -f .github/abaplint/abap_702.jsonc abaplint.jsonc",
"init_downport": "git clone --branch 702 https://github.com/abap2UI5/abap2UI5 && cp -r abap2UI5/src src",
"cleanup_downport": "rm -rf abap2UI5 && rm -rf src/src"
},
"repository": {
"type": "git",
"url": "git+https://github.com/abap2UI5/samples.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/abap2UI5/samples.git"
},
"homepage": "https://github.com/abap2UI5/samples#readme",
"devDependencies": {
"@abaplint/cli": "^2.113.86",
"@abaplint/database-sqlite": "^2.10.20",
"@abaplint/runtime": "^2.10.23",
"@abaplint/transpiler-cli": "^2.10.23"
},
"dependencies": {
"npm-check-updates": "^17.1.13"
}
}