From ea4f7bb845d282a5bb950bc82e3d147045bce4ee Mon Sep 17 00:00:00 2001 From: Marco Pasqualetti Date: Sat, 17 Feb 2024 08:28:36 +0100 Subject: [PATCH] ci: add codeQuality job to run lint and format task --- .github/workflows/CI.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 3568a1f3f4..4eed238998 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -8,7 +8,31 @@ on: types: [opened, synchronize] jobs: + codeQuality: + name: Code quality + 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: Build packages + run: yarn build + + - name: Check format + run: yarn format + + - name: Lint + run: yarn lint + build: + needs: [codeQuality] strategy: matrix: os: [ubuntu-22.04, windows-2022] @@ -33,6 +57,7 @@ jobs: nodeJsBaselineAptCompatibility: name: NodeJS installed from stock Ubuntu-LTS packages (not external sources) + needs: [codeQuality] runs-on: ubuntu-22.04 container: image: 'ubuntu:24.04'