Skip to content

Commit

Permalink
CI: speed-up by splitting all tests into separate commands
Browse files Browse the repository at this point in the history
  • Loading branch information
satelllte committed Feb 3, 2024
1 parent cd9627d commit c7dff94
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 6 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -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;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit c7dff94

Please sign in to comment.