Merge pull request #183 from cwildt/master #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: testing | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
unit_test: | |
name: Run unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- uses: actions/checkout@v3 | |
- name: Run unit tests | |
run: | | |
npm -g install @abaplint/transpiler-cli | |
npm install @abaplint/runtime | |
rm -rf transpiled | |
echo "Building ..." | |
abap_transpile transpile_for_testing.json | |
echo "Running unit tests ..." | |
node transpiled/index.mjs |