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
37 changes: 37 additions & 0 deletions .github/workflows/test-web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
on:
push:
branches:
- main
- dev
- "release/**"
paths-ignore:
- "*.md"
- "LICENSE"
pull_request:
branches:
- main
- dev
- "release/**"
paths-ignore:
- "*.md"
- "LICENSE"

jobs:
test-web:
runs-on:
- codebuild-defguard-core-runner-${{ github.run_id }}-${{ github.run_attempt }}
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- uses: actions/setup-node@v4
with:
node-version: 24
- name: install deps
working-directory: ./web
run: |
npm i -g npm pnpm
pnpm i --frozen-lockfile
- name: Run tests
working-directory: ./web
run: pnpm run test
20 changes: 10 additions & 10 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -110,34 +110,34 @@ confidence-threshold = 0.8
# aren't accepted for every possible crate as with the normal allow list
exceptions = [
{ allow = [
"AGPL-3.0-only",
"AGPL-3.0-only", "AGPL-3.0-or-later",
], crate = "defguard" },
{ allow = [
"AGPL-3.0-only",
"AGPL-3.0-only", "AGPL-3.0-or-later",
], crate = "defguard_common" },
{ allow = [
"AGPL-3.0-only",
"AGPL-3.0-only", "AGPL-3.0-or-later",
], crate = "defguard_core" },
{ allow = [
"AGPL-3.0-only",
"AGPL-3.0-only", "AGPL-3.0-or-later",
], crate = "defguard_mail" },
{ allow = [
"AGPL-3.0-only",
"AGPL-3.0-only", "AGPL-3.0-or-later",
], crate = "defguard_proto" },
{ allow = [
"AGPL-3.0-only",
"AGPL-3.0-only", "AGPL-3.0-or-later",
], crate = "defguard_web_ui" },
{ allow = [
"AGPL-3.0-only",
"AGPL-3.0-only", "AGPL-3.0-or-later",
], crate = "defguard_event_router" },
{ allow = [
"AGPL-3.0-only",
"AGPL-3.0-only", "AGPL-3.0-or-later",
], crate = "defguard_event_logger" },
{ allow = [
"AGPL-3.0-only",
"AGPL-3.0-only", "AGPL-3.0-or-later",
], crate = "defguard_version" },
{ allow = [
"AGPL-3.0-only",
"AGPL-3.0-only", "AGPL-3.0-or-later",
], crate = "model_derive" },
]

Expand Down
14 changes: 11 additions & 3 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
"typesafe-i18n": "typesafe-i18n",
"vite": "vite",
"prettier": "prettier",
"biome": "biome"
"biome": "biome",
"test": "vitest run",
"test:ui": "vitest --ui",
"test:watch": "vitest"
},
"browserslist": {
"production": [
Expand All @@ -40,7 +43,10 @@
],
"onlyBuiltDependencies": [
"@swc/core"
]
],
"overrides": {
"mdast-util-to-hast": "13.2.1"
}
},
"dependencies": {
"@floating-ui/react": "^0.27.16",
Expand Down Expand Up @@ -128,6 +134,7 @@
"@types/react-dom": "^19.2.3",
"@types/react-router-dom": "^5.3.3",
"@vitejs/plugin-react-swc": "^4.2.2",
"@vitest/ui": "^4.0.14",
"autoprefixer": "^10.4.22",
"concurrently": "^9.2.1",
"dotenv": "^17.2.3",
Expand All @@ -140,6 +147,7 @@
"type-fest": "^4.41.0",
"typescript": "~5.9.3",
"vite": "^7.2.2",
"vite-plugin-package-version": "^1.1.0"
"vite-plugin-package-version": "^1.1.0",
"vitest": "^4.0.14"
}
}
Loading