test: test both userscript and extension builds

This commit is contained in:
xenticore
2025-05-01 15:38:51 -04:00
parent 95ce637892
commit 8d8dea0bdc
5 changed files with 11 additions and 5 deletions

View File

@@ -19,8 +19,10 @@ jobs:
id: version
- name: Install dependencies
run: bun install
- name: Test project
run: bun test --define __VERSION__='${{ steps.version.outputs.version }}' --define __EXTENSION_NAME='"tf2wikipricing"'
- name: Test UserScript version
run: bun test --define __VERSION__='${{ steps.version.outputs.version }}' --define __EXTENSION_NAME='"tf2wikipricing"' --define __ENV_USERSCRIPT=1 --define __ENV_WEBEXTENSION=0
- name: Test WebExtension version
run: bun test --define __VERSION__='${{ steps.version.outputs.version }}' --define __EXTENSION_NAME='"tf2wikipricing"' --define __ENV_USERSCRIPT=0 --define __ENV_WEBEXTENSION=1
- name: Build project
run: bun run build --mode production
- name: Archive production artifacts