Skip to content

Merge pull request #95 from AStarStartup/Issue60 #4

Merge pull request #95 from AStarStartup/Issue60

Merge pull request #95 from AStarStartup/Issue60 #4

Workflow file for this run

name: Test
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: "12"
# Speed up subsequent runs with caching
- 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-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
# Install packages.
- name: Install
run: npm install
# Build project.
- name: Build
run: npm run build
# Run tests.
- name: Test
run: npm run test