Skip to content

Minor updates

Minor updates #18

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Checkout branch 🛎
uses: actions/checkout@v2
- name: Setup node env 🏗
uses: actions/setup-node@v2.5.1
with:
node-version-file: .nvmrc
- name: Get yarn cache directory path 🛠
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache node_modules 📦
uses: actions/cache@v2
id: yarn-cache
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
- name: Run linter 👀
run: yarn lint
- name: Check if build is up-to-date 🚧
run: yarn build && git add --intent-to-add dist && git diff HEAD --quiet -- dist
- name: Run tests 🧪
run: yarn test