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
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ jobs:
- name: Lint
run: pnpm lint:ci

- name: Typecheck
run: pnpm typecheck

test-matrix:
name: Test Matrix (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,3 +276,22 @@ jobs:

---
> **WARNING**: npm publish failed. Package was NOT published to npm." || true

trigger-docs:
name: Trigger Docs Build
needs: [release-please, publish]
if: >-
needs.release-please.result == 'success'
&& needs.release-please.outputs.release_created == 'true'
&& needs.publish.result == 'success'
&& github.ref_name == 'master'
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- name: Dispatch build-docs workflow
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ needs.release-please.outputs.tag_name }}
REPO: ${{ github.repository }}
run: gh workflow run build-docs.yaml --repo "$REPO" --ref "$TAG"
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"docs": "typedoc --entryPointStrategy expand ./src",
"lint": "biome check --write",
"lint:ci": "biome check",
"typecheck": "tsc --noEmit",
"dev": "tsup --watch",
"test": "vitest run",
"test:ci": "vitest run --exclude '**/*.e2e.test.ts'",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/schemaUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const safeDateTransfer = (
message: error instanceof Error ? error.message : String(error),
}),
})
: Effect.void;
: Effect.succeed<Date | undefined>(undefined);

/**
* formatWithTransfer를 Effect로 감싸 InvalidDateError가 Defect가 되지 않도록 합니다.
Expand Down
2 changes: 1 addition & 1 deletion test/lib/bms-test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import path from 'path';
import type {
BmsCarouselCommerceItemSchema,
BmsCarouselFeedItemSchema,
BmsChatBubbleType,
BmsMainWideItemSchema,
BmsSubWideItemSchema,
} from '@/models/base/kakao/bms';
import type {BmsChatBubbleType} from '@/models/base/kakao/kakaoOption';
import type {FileType} from '@/models/requests/messages/groupMessageRequest';
import type StorageService from '@/services/storage/storageService';

Expand Down
16 changes: 8 additions & 8 deletions test/models/base/kakao/bms/bmsConstraints.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ describe('validateCouponDescription', () => {
});

it.each([
['TEXT', 12, true],
['IMAGE', 12, true],
['COMMERCE', 12, true],
['CAROUSEL_FEED', 12, true],
['CAROUSEL_COMMERCE', 12, true],
['PREMIUM_VIDEO', 12, true],
['WIDE', 18, true],
['WIDE_ITEM_LIST', 18, true],
['TEXT', 12],
['IMAGE', 12],
['COMMERCE', 12],
['CAROUSEL_FEED', 12],
['CAROUSEL_COMMERCE', 12],
['PREMIUM_VIDEO', 12],
['WIDE', 18],
['WIDE_ITEM_LIST', 18],
] as const)('should accept coupon description at exact max length for %s (%d chars)', (chatBubbleType, maxLen) => {
const result = validateCouponDescription({
chatBubbleType,
Expand Down
4 changes: 3 additions & 1 deletion test/models/requests/messages/sendMessage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,8 @@ describe('sendRequestConfigSchema', () => {
});
const encoded = Schema.encodeSync(sendRequestConfigSchema)(decoded);

expect(encoded.scheduledDate!.getTime()).toBe(originalDate.getTime());
expect(new Date(encoded.scheduledDate!).getTime()).toBe(
originalDate.getTime(),
);
});
});
Loading