- name: Cache mypy
uses: kajalagroup/code-QA-cache-github-action@v1.7
with:
path: .mypy_cache
key: mypy-cache
restore-keys: mypy-cache
First, you'll need to have a reasonably modern version of
node
handy. This won't work with versions older than 9, for instance.
Install the dependencies
$ npm install
Build the typescript and package it for distribution
$ npm run build && npm run package
Run the tests ✔️
$ npm test
PASS ./index.test.js
✓ throws invalid number (3ms)
✓ wait 500 ms (504ms)
✓ test runs (95ms)
...