From d18e1316aa62546ef70c21b02397ca32f554acfa Mon Sep 17 00:00:00 2001 From: oblomov-dev <102328295+oblomov-dev@users.noreply.github.com> Date: Wed, 19 Feb 2025 21:16:38 +0000 Subject: [PATCH] update --- .github/workflows/auto_transpile.yaml | 20 ++++++++++++++++++++ .github/workflows/test_node.yaml | 2 +- .github/workflows/test_unit.yaml | 2 +- package.json | 3 +-- 4 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/auto_transpile.yaml diff --git a/.github/workflows/auto_transpile.yaml b/.github/workflows/auto_transpile.yaml new file mode 100644 index 00000000..e6f98e63 --- /dev/null +++ b/.github/workflows/auto_transpile.yaml @@ -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 diff --git a/.github/workflows/test_node.yaml b/.github/workflows/test_node.yaml index d7c28270..3c27e1c2 100644 --- a/.github/workflows/test_node.yaml +++ b/.github/workflows/test_node.yaml @@ -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 diff --git a/.github/workflows/test_unit.yaml b/.github/workflows/test_unit.yaml index 98f5d359..8adc8cd4 100644 --- a/.github/workflows/test_unit.yaml +++ b/.github/workflows/test_unit.yaml @@ -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 diff --git a/package.json b/package.json index 9a3474af..4ba25a94 100644 --- a/package.json +++ b/package.json @@ -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": {