Skip to content

Commit

Permalink
CI: add test for node 12 through 20
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Nov 20, 2023
1 parent acc7f50 commit 5555132
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5555132

Please sign in to comment.