Skip to content

Update test.yml

Update test.yml #2

Workflow file for this run

name: Run Test
on: [push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-agenda-${{ hashFiles('**/package-lock.lock') }}
restore-keys: |
${{ runner.os }}-build-agenda-
- name: Update npm
run: npm -g install npm@latest
- name: Install Packages
run: npm install
- name: Docs
run: npm run docs