Skip to content

Commit

Permalink
add action
Browse files Browse the repository at this point in the history
  • Loading branch information
larshp committed Nov 13, 2023
1 parent 16d7fa0 commit 3eba7ee
Show file tree
Hide file tree
Showing 7 changed files with 160 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: test

on:
push:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Run npm steps
run: |
npm install
npm test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
output
downport
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ignore-scripts=true
19 changes: 19 additions & 0 deletions abap_transpile.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"input_folder": "downport",
"input_filter": [],
"output_folder": "output",
"libs": [
{
"url": "https://github.com/open-abap/open-abap-core"
}
],
"write_unit_tests": true,
"write_source_map": true,
"options": {
"ignoreSyntaxCheck": false,
"addFilenames": true,
"addCommonJS": true,
"unknownTypes": "runtimeError",
"skip": []
}
}
35 changes: 35 additions & 0 deletions abaplint-downport.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"global": {
"files": "/downport/**/*.*"
},
"dependencies": [
{
"url": "https://github.com/open-abap/open-abap-core",
"files": "/src/**/*.*"
}
],
"syntax": {
"version": "open-abap",
"errorNamespace": "."
},
"rules": {
"downport": true,
"begin_end_names": true,
"line_length": {
"length": 255
},
"keyword_case": true,
"in_statement_indentation": true,
"check_ddic": true,
"indentation": 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
}
}
67 changes: 67 additions & 0 deletions package-lock.json

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

20 changes: 20 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "@abaplint/abap-base",
"private": true,
"version": "0",
"description": "test",
"scripts": {
"build": "rm -rf output && abap_transpile abap_transpile.json",
"downport": "rm -rf downport && cp -r src downport && abaplint --fix abaplint-downport.jsonc",
"lint": "abaplint abaplint-downport.jsonc",
"test": "npm run downport && npm run build && node output/index.mjs"
},
"author": "Lars Hvam Petersen",
"license": "MIT",
"homepage": "https://abaplint.org",
"dependencies": {
"@abaplint/cli": "^2.103.6",
"@abaplint/runtime": "^2.7.135",
"@abaplint/transpiler-cli": "^2.7.135"
}
}

0 comments on commit 3eba7ee

Please sign in to comment.