improvements for usability #2
Workflow file for this run
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: JavaScript Tests | |
on: | |
push: | |
branches: [master, main] | |
pull_request: | |
branches: [master, main] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.x, 16.x, 18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies for pose_format | |
working-directory: ./src/js/pose_format | |
run: npm ci | |
- name: Run tests for pose_format | |
working-directory: ./src/js/pose_format | |
run: npm run test | |
- name: Install dependencies for pose_viewer | |
working-directory: ./src/js/pose_viewer | |
run: npm ci | |
- name: Run tests for pose_viewer | |
working-directory: ./src/js/pose_viewer | |
run: npm run test |