Skip to content

ci: split up lint

ci: split up lint #3

---
name: Lint json-server/
on:
push:
branches-ignore: [main]
pull_request:
branches: [main]
jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
statuses: write
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Clean cache
working-directory: ./json-server
run: yarn cache clean
- name: Install packages for json-server
working-directory: ./json-server
run: yarn install
- name: Run eslint against json-server
working-directory: ./json-server
run: yarn lint