From 195078edc417412f1a2afd09b298d69b4457c8da Mon Sep 17 00:00:00 2001 From: Marco Pasqualetti <24919330+marcalexiei@users.noreply.github.com> Date: Mon, 19 Feb 2024 12:20:17 +0100 Subject: [PATCH] ci: add codeQuality job to run lint and format tasks (#3922) --- .github/workflows/CI.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 3568a1f3f4..975ccd12ea 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -31,6 +31,27 @@ jobs: - name: Test run: yarn test + codeQuality: + name: Code quality + needs: [build] + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: yarn + + - name: Install dependencies + run: yarn install --ignore-engines --frozen-lockfile + + - name: Check format + run: yarn format + + - name: Lint + run: yarn lint + nodeJsBaselineAptCompatibility: name: NodeJS installed from stock Ubuntu-LTS packages (not external sources) runs-on: ubuntu-22.04