diff options
| author | Fuwn <[email protected]> | 2026-02-10 00:14:49 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-02-10 00:14:49 -0800 |
| commit | 3bf0a85f912d39595f0f9d329ee316e1af79dd86 (patch) | |
| tree | 34d8dce12a12d14a61774e47f2eaeed21bc7289e /.github/workflows/ci.yml | |
| parent | fix: reduce lint warnings from 34 to 0 (diff) | |
| download | asa.news-3bf0a85f912d39595f0f9d329ee316e1af79dd86.tar.xz asa.news-3bf0a85f912d39595f0f9d329ee316e1af79dd86.zip | |
feat: add vitest tests and GitHub Actions CI
24 tests covering webhook URL validation (SSRF), API key generation/
hashing, and HTML sanitization. CI workflow runs lint, typecheck
(build), and test on push/PR to main.
Diffstat (limited to '.github/workflows/ci.yml')
| -rw-r--r-- | .github/workflows/ci.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ea16cbe --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + ci: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: pnpm + + - run: pnpm install --frozen-lockfile + + - name: lint + run: pnpm lint + + - name: typecheck + run: pnpm --filter web build + + - name: test + run: pnpm test |