From c7dff94f421a5c3d0804029244705b774bc7e54d Mon Sep 17 00:00:00 2001 From: Yehor M Date: Sat, 3 Feb 2024 15:18:45 +0200 Subject: [PATCH] CI: speed-up by splitting all tests into separate commands --- .github/workflows/ci.yml | 2 ++ next.config.js | 6 ++++++ package.json | 1 + 3 files changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 30ba026..0dc79a1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,8 @@ jobs: run: bun --version - name: Install dependencies run: bun install --frozen-lockfile + - name: Test (types) + run: bun run test:types - name: Test (units) run: bun run test:units - name: Test (lint) diff --git a/next.config.js b/next.config.js index dc29843..edb5c3a 100644 --- a/next.config.js +++ b/next.config.js @@ -1,6 +1,12 @@ /** @type {import('next').NextConfig} */ const nextConfig = { output: 'export', + eslint: { + ignoreDuringBuilds: true, // Checking in "test:lint" script instead + }, + typescript: { + ignoreBuildErrors: true, // Checking in "test:types" script instead + }, }; module.exports = nextConfig; diff --git a/package.json b/package.json index 4e8250c..09c8040 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "dev": "next dev", "build": "next build", "start": "next start", + "test:types": "tsc", "test:units": "vitest", "test:lint": "next lint --max-warnings=0 --format=compact", "test:format": "prettier . --check",