Skip to content

feat: add pre-commit #22

feat: add pre-commit

feat: add pre-commit #22

Workflow file for this run

name: UI
on:
push:
branches: [ "master" ]
paths:
- ".github/workflows/ui.yml"
- "ui/**"
pull_request:
branches: [ "master" ]
paths:
- ".github/workflows/ui.yml"
- "ui/**"
env:
WORKFLOW_NODE_VERSION: v20.x
defaults:
run:
working-directory: ./ui
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ env.WORKFLOW_NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.WORKFLOW_NODE_VERSION }}
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('./ui/yarn.lock') }}
- name: Install
run: yarn install
- name: Lint
run: yarn lint
- name: Test
run: yarn test