From 8537469f62c6cbfb532f3a803534d3c1c4fe349e Mon Sep 17 00:00:00 2001 From: Lars Hvam Date: Fri, 28 Jul 2023 07:06:22 +0200 Subject: [PATCH] add github actions --- .github/workflows/unit.yml | 19 +++++++++++++++++++ package.json | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/unit.yml diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml new file mode 100644 index 0000000..982e8fb --- /dev/null +++ b/.github/workflows/unit.yml @@ -0,0 +1,19 @@ +name: unit + +on: + pull_request: + +permissions: + contents: read + +jobs: + unit: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '20' + - run: npm install + - run: npm test \ No newline at end of file diff --git a/package.json b/package.json index 04c8926..15a3e3f 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "license": "MIT", "private": true, "scripts": { - "unit": "rm -rf output && abap_transpile abap_transpile.json && echo RUNNING && node output/index.mjs" + "test": "rm -rf output && abap_transpile abap_transpile.json && echo RUNNING && node output/index.mjs" }, "repository": { "type": "git",