This commit is contained in:
oblomov-dev 2025-02-19 21:16:38 +00:00 committed by GitHub
parent 9bf744e481
commit d18e1316aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 23 additions and 4 deletions

20
.github/workflows/auto_transpile.yaml vendored Normal file
View File

@ -0,0 +1,20 @@
name: auto_transpile
on:
pull_request:
permissions:
contents: read
jobs:
auto_transpile:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
- run: npm ci
- run: npm run downport
- run: npm run auto_transpile

View File

@ -17,5 +17,5 @@ jobs:
node-version: '16'
- run: npm ci
- run: npm run downport
- run: npm run transpile
- run: npm run auto_transpile
- run: npm run express

View File

@ -17,5 +17,5 @@ jobs:
node-version: '16'
- run: npm ci
- run: npm run downport
- run: npm run transpile
- run: npm run auto_transpile
- run: npm run unit

View File

@ -8,13 +8,12 @@
"auto_downport": "abaplint --fix .github/abaplint/abap_702.jsonc && npm run syfixes",
"auto_app2abap": "node .github/app2abap/trans2abap.js",
"auto_abaplint": "npx abaplint .github/abaplint/auto_abaplint_fix.jsonc --fix",
"auto_transpile": "cp node/srv/*.abap src && mkdir -p node/src && abap_transpile .github/abaplint/auto_transpile.jsonc ",
"rename": "npm ci && abaplint .github/abaplint/rename_test.jsonc --rename",
"express": "node node/srv/express.mjs",
"unit": "echo RUNNING && node output/index.mjs",
"downport": "rm -rf node/downport && cp -r src node/downport && abaplint --fix ./node/ci/abaplint-downport.jsonc && npm run syfixes",
"transpile": "rm -rf node/output && cp node/srv/*.abap node/downport && abap_transpile ./node/ci/abap_transpile.json",
"auto_transpile": "rm -rf node/output && cp node/srv/*.abap node/downport && abap_transpile ./node/ci/abap_transpile.json",
"build" : "npm ci && npm run downport && npm run transpile && rm -rf src"
},
"repository": {