From 1e3ce7c0da52df759885152b984b81806ab537f4 Mon Sep 17 00:00:00 2001 From: sabotack Date: Sat, 23 Mar 2024 03:48:09 +0100 Subject: [PATCH] Update quality checks workflow --- .github/workflows/main.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e9bb555..68293f1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,6 +2,8 @@ name: Code Quality Checks on: push: + branches: + - main pull_request: branches: - main @@ -9,12 +11,12 @@ on: permissions: contents: read +env: + OS: ubuntu-latest + jobs: prettier: - strategy: - matrix: - os: [ubuntu-latest] - runs-on: ubuntu-latest + runs-on: $OS name: Prettier steps: - name: git-checkout @@ -26,5 +28,15 @@ jobs: - name: Prettier run: npm run format:check + lint: + runs-on: $OS + name: ESLint + steps: + - name: git-checkout + uses: actions/checkout@v3 + + - name: Install all dependencies + run: npm ci + - name: ESLint run: npm run lint