diff --git a/.github/abaplint/abap_702.jsonc b/.github/abaplint/abap_702.jsonc new file mode 100644 index 0000000..065161f --- /dev/null +++ b/.github/abaplint/abap_702.jsonc @@ -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 + } + } \ No newline at end of file diff --git a/.github/workflows/ABAP_702.yaml b/.github/workflows/ABAP_702.yaml new file mode 100644 index 0000000..ad3327a --- /dev/null +++ b/.github/workflows/ABAP_702.yaml @@ -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 \ No newline at end of file diff --git a/.github/workflows/auto_downport.yaml b/.github/workflows/auto_downport.yaml new file mode 100644 index 0000000..a5b445c --- /dev/null +++ b/.github/workflows/auto_downport.yaml @@ -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/github-push-action@v0.6.0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: 702 + force: true \ No newline at end of file