From 5555132c87af3e557951b181cddc487db4d47d86 Mon Sep 17 00:00:00 2001 From: Willian Galvani Date: Mon, 20 Nov 2023 09:03:56 -0300 Subject: [PATCH] CI: add test for node 12 through 20 --- .github/workflows/test.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d3be94302..48b18f59d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -84,3 +84,40 @@ jobs: - name: Test with pytest run: | python -m pytest + + + node-tests: + name: Node ${{ matrix.node-version }} test + runs-on: ubuntu-20.04 + strategy: + fail-fast: false + matrix: + node-version: ['12', '14', '16', '18', '20'] + steps: + - uses: actions/checkout@v2 + with: + submodules: 'recursive' + - name: Set up Python 3.8 + uses: actions/setup-python@v2 + with: + python-version: 3.8 + - name: Install dependencies + run: | + pip install future lxml + - uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - name: Install mavlink message + run: | + git clone https://github.com/ArduPilot/mavlink.git + ln -s $PWD/mavlink/message_definitions ../ + - run: | + cd "generator/javascript" && npm install + echo $PWD + git remote -v + git status + + - name : Test mavlink + run: | + ./test_gen_js.sh + cd "generator/javascript" && npm test