Skip to content

Commit

Permalink
ci: add codeQuality job to run lint and format task
Browse files Browse the repository at this point in the history
  • Loading branch information
marcalexiei committed Feb 17, 2024
1 parent 2e225f7 commit ea4f7bb
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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'
Expand Down

0 comments on commit ea4f7bb

Please sign in to comment.