Bump minimatch from 3.0.4 to 3.1.2 #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |