Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,3 @@ runs:
- name: Set up project
shell: bash
run: pnpm install

- name: Set up infra
shell: bash
run: |
cd infra
pnpm install
54 changes: 16 additions & 38 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,50 +6,28 @@ on:
- master

jobs:
lint:
ci-checks:
name: CI Check (${{ matrix.name }})
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up project
uses: ./.github/actions/setup-node-deps

- name: Run linting
run: pnpm lint

test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up project
uses: ./.github/actions/setup-node-deps
strategy:
fail-fast: false
matrix:
include:
- name: lint
command: ci
- name: test
command: test:run
- name: typecheck
command: typecheck
- name: build
command: build

- name: Run tests
run: pnpm test

typecheck:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up project
uses: ./.github/actions/setup-node-deps

- name: Run typecheck
run: pnpm typecheck

build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up project
uses: ./.github/actions/setup-node-deps

- name: Run build
run: pnpm build
- name: Run ${{ matrix.name }}
run: pnpm run ${{ matrix.command }}
14 changes: 0 additions & 14 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,4 @@ export default defineConfig({
}),
cloudflare(),
],
test: {
globals: true,
environment: 'jsdom',
setupFiles: ['src/setup-tests.ts'],
coverage: {
provider: 'v8',
enabled: !!process.env.CI,
exclude: ['styled-system', '**/*.config.*', '**/*.d.ts'],
include: ['src/resume/**', 'src/icons/**'],
},
typecheck: {
enabled: true,
},
},
});
23 changes: 23 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { defineConfig, mergeConfig } from 'vitest/config';
import viteConfig from './vite.config';

// https://vitejs.dev/config/
export default mergeConfig(
viteConfig,
defineConfig({
test: {
globals: true,
environment: 'jsdom',
setupFiles: ['src/setup-tests.ts'],
coverage: {
provider: 'v8',
enabled: !!process.env.CI,
exclude: ['styled-system', '**/*.config.*', '**/*.d.ts'],
include: ['src/resume/**', 'src/icons/**'],
},
typecheck: {
enabled: true,
},
},
})
);