clients/js: add unit tests on worm CLI #20
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: Worm CLI | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
worm-cli: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install | |
working-directory: ./clients/js | |
run: | | |
npm ci | |
- name: build worm CLI (Makefile) | |
working-directory: ./clients/js | |
run: | | |
npm run make | |
- name: Run tests | |
working-directory: ./clients/js | |
run: | | |
npm run test-ci | |
- name: Save HTML report as artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: worm-cli-test-report | |
# Must save entire folder as artifact to preview report as HTML | |
path: ./clients/js/html-report/ |