add github actions

This commit is contained in:
Lars Hvam 2023-07-28 07:06:22 +02:00
parent b4b95218b5
commit 8537469f62
2 changed files with 20 additions and 1 deletions

19
.github/workflows/unit.yml vendored Normal file
View File

@ -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

View File

@ -2,7 +2,7 @@
"license": "MIT", "license": "MIT",
"private": true, "private": true,
"scripts": { "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": { "repository": {
"type": "git", "type": "git",