From 7bd3e37d8cb2a107733b775d245bd7bf3bb284f4 Mon Sep 17 00:00:00 2001 From: Bart Veneman Date: Sun, 25 May 2025 20:09:43 +0200 Subject: [PATCH 1/3] separate CI jobs to individial jobs --- .github/workflows/test.yml | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2ca3462..167a146 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,8 +10,17 @@ on: branches: [main] jobs: - lint: - name: Lint + lint-js: + name: Lint JS + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Lint JS + run: npx --yes oxlint@latest -D perf + + lint-package: + name: Lint package runs-on: ubuntu-latest steps: - name: Checkout code @@ -22,13 +31,23 @@ jobs: cache: npm - run: npm install --no-fund --no-audit --ignore-scripts - run: npm run build - - name: Lint JS - run: npx --yes oxlint@latest -D perf - - name: Check types - run: npm run check --if-present - - name: Lint package + - name: Run publint run: npx --yes publint + check-types: + name: Check types + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 + with: + cache: npm + - run: npm install --no-fund --no-audit --ignore-scripts + - name: Check types + run: npm run check + test: name: Unit tests runs-on: ubuntu-latest From 9360e59b4ef42168d3cebd0b30ee04a898bf1106 Mon Sep 17 00:00:00 2001 From: Bart Veneman Date: Sun, 25 May 2025 20:10:27 +0200 Subject: [PATCH 2/3] no build needed to run unit tests --- .github/workflows/test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 167a146..ebbe8ee 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -58,5 +58,4 @@ jobs: with: cache: npm - run: npm install --no-fund --no-audit --ignore-scripts - - run: npm run build - run: npm test From 9df73bc65c34d1140b71fd7182ce19ecd1a68899 Mon Sep 17 00:00:00 2001 From: Bart Veneman Date: Sun, 25 May 2025 20:12:28 +0200 Subject: [PATCH 3/3] Revert "no build needed to run unit tests" This reverts commit 9360e59b4ef42168d3cebd0b30ee04a898bf1106. --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ebbe8ee..167a146 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -58,4 +58,5 @@ jobs: with: cache: npm - run: npm install --no-fund --no-audit --ignore-scripts + - run: npm run build - run: npm test