From 3f347cb7dfe47dfcc2bd4eb9c83265fe0d544cae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Pallar=C3=A9s?= Date: Thu, 4 Sep 2025 13:23:48 +0200 Subject: [PATCH] chore: separate test and list ci jobs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently, linting, compiling and testing happens during the same CI job, making it hard to distinguish if the CI didn’t pass because of a linting issue or because the code does not work. This change separates the current build job into two: lint and test. --- .github/workflows/build.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5235118..5b5139a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,8 +8,8 @@ permissions: contents: read jobs: - build: - name: Build + lint: + name: Lint runs-on: ubuntu-latest steps: @@ -30,6 +30,22 @@ jobs: - name: Lint run: npx eslint + test: + name: Test + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v5 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + cache: npm + + - name: Install dependencies + run: npm ci + - name: Type check run: npx tsc