Skip to content

build(repo): setup eslint in root, and update github actions lint wor… #9

build(repo): setup eslint in root, and update github actions lint wor…

build(repo): setup eslint in root, and update github actions lint wor… #9

Workflow file for this run

name: Linting and formatting
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 18, 20]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install
- name: Run Lint
run: yarn lint && yarn format:check && yarn lint-staged