From 11040ba8e241ed9d5ca1404e985cd409db516789 Mon Sep 17 00:00:00 2001 From: Dario Piotrowicz Date: Tue, 10 Jan 2023 11:29:28 +0000 Subject: [PATCH] add linting checks to PRs checks --- .github/workflows/PRs.yml | 8 +++++++- package.json | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/PRs.yml b/.github/workflows/PRs.yml index 251dce4..bd7ce08 100644 --- a/.github/workflows/PRs.yml +++ b/.github/workflows/PRs.yml @@ -23,7 +23,11 @@ jobs: - name: Build run: yarn build - name: Check formatting - run: yarn pretty + run: yarn pretty + - name: Check backend linting + run: yarn lint:backend + - name: Check functions linting + run: yarn lint:functions - name: Run API tests run: yarn test @@ -40,5 +44,7 @@ jobs: run: yarn && yarn --cwd frontend - name: Initialize local database run: yarn database:create-mock + - name: Check frontend linting + run: yarn lint:frontend - name: Run UI tests run: yarn test:ui diff --git a/package.json b/package.json index 9bc736d..24a5682 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "test": "NODE_OPTIONS=--experimental-vm-modules yarn jest", "lint": "run-s lint:* --print-label", "lint:frontend": "npm --prefix frontend run lint", - "lint:be": "npx eslint backend", + "lint:backend": "npx eslint backend", "lint:functions": "npx eslint functions", "build": "yarn --cwd frontend install && yarn --cwd frontend build", "d1": "NO_D1_WARNING=true wrangler d1",