Skip to content

clients/js: add unit tests on worm CLI #20

clients/js: add unit tests on worm CLI

clients/js: add unit tests on worm CLI #20

Workflow file for this run

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/