Skip to content

Grant/bru-1060

Grant/bru-1060 #41

Workflow file for this run

name: Prettier frontend
on:
pull_request:
workflow_dispatch:
jobs:
prettier:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Cache Yarn cache directory
uses: actions/cache@v2
with:
path: ~/.cache/yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "18.x"
- name: Install dependencies
run: yarn install
- name: Run Prettier check
run: yarn lint