Files
redocly-cli/.github/workflows/unit-tests.yaml
2020-11-13 21:13:47 +02:00

31 lines
670 B
YAML

name: Unit Tests
on: [push]
jobs:
build-and-unit:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: cache node modules
uses: actions/cache@v1
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: |
npm-${{ hashFiles('package-lock.json') }}
npm-
- run: npm i -g npm@7
- run: npm install
- run: npm test
env:
CI: true