Skip to content

Merge pull request #156 from 10up/maintainance-notice #287

Merge pull request #156 from 10up/maintainance-notice

Merge pull request #156 from 10up/maintainance-notice #287

Workflow file for this run

name: unit tests
on:
push:
branches:
- trunk
- develop
pull_request:
branches:
- trunk
- develop
jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 15.x]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Setup npm cache
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm install
env:
CI: true
- name: Run unit tests
run: npm run build && npm run test
env:
CI: true
- name: Upload result to codecov
run: npm run codecov