Skip to content

build(deps): bump word-wrap from 1.2.3 to 1.2.4 #419

build(deps): bump word-wrap from 1.2.3 to 1.2.4

build(deps): bump word-wrap from 1.2.3 to 1.2.4 #419

name: Lint and test components
on: push
# Redo this once deploy script works.
# on:
# push:
# branches:
# - '*'
# - '!master'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x] # Add more if you want to test other node versions.
steps:
- name: Check out repository
uses: actions/checkout@v1
- name: Use Node version ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
# https://github.com/actions/cache/blob/master/examples.md#node---yarn
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Use yarn cache
uses: actions/cache@v1
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install
- name: Lint components
run: yarn lint
- name: Test components
run: yarn test
env:
CI: true