mirror of
https://github.com/LukeHagar/redocly-cli.git
synced 2025-12-06 04:21:09 +00:00
31 lines
670 B
YAML
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
|