diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index ac51981..7e64112 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -19,6 +19,8 @@ jobs: uses: actions/checkout@v4.1.2 - name: Install dependencies run: bun install + - name: Test project + run: bun test - name: Build project run: bun run build - name: Archive production artifacts diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index a57b57e..4d9cd91 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -19,6 +19,8 @@ jobs: id: version - name: Install dependencies run: bun install + - name: Test project + run: bun test - name: Build project run: bun run build - name: Archive production artifacts diff --git a/bun.lockb b/bun.lockb index 6acbca9..4c684dc 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 1184a56..1a1e592 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,10 @@ "@types/firefox-webext-browser": "^120.0.4", "@types/greasemonkey": "^4.0.7", "@types/html": "^1.0.4", + "@types/jest": "^29.5.14", "browserify-fs": "^1.0.0", "buffer": "^6.0.3", + "bun-types": "^1.2.5", "copy-webpack-plugin": "^12.0.2", "path-browserify": "^1.0.1", "raw-loader": "^4.0.2", diff --git a/tsconfig.json b/tsconfig.json index 92c656e..d459c51 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,6 +9,7 @@ "allowJs": true, "moduleResolution": "node", "resolveJsonModule": true, - "allowSyntheticDefaultImports": true + "allowSyntheticDefaultImports": true, + "types": ["bun-types", "jest", "greasemonkey", "firefox-webext-browser"] } } \ No newline at end of file