Skip to content

Commit

Permalink
feat: add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Raubzeug committed Feb 4, 2025
1 parent 5bbfc39 commit c0a27cf
Show file tree
Hide file tree
Showing 7 changed files with 5,197 additions and 2,057 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ jobs:
cache: 'npm'
- name: Install Packages
run: npm ci
- name: Tests
run: npm run test
29 changes: 29 additions & 0 deletions .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: PR Title

on:
pull_request:
types:
- opened
- synchronize
- reopened
- edited
merge_group:
types: [checks_requested]

jobs:
verify_title:
name: Verify Title
runs-on: ubuntu-latest
if: ${{github.event.action != 'checks_requested'}}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Install Packages
run: npm ci
- name: Run Commitlint
run: echo "${{github.event.pull_request.title}}" | npx commitlint
9 changes: 9 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import type {Config} from '@jest/types';

const config: Config.InitialOptions = {
preset: 'ts-jest',
transform: {'^.+\\.[jt]sx?$': 'ts-jest'},
rootDir: '.',
};

export default config;
Loading

0 comments on commit c0a27cf

Please sign in to comment.