From 7b70a0e4a938c92331936c15a5dd486331ef7ab4 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 9 Dec 2024 18:38:50 +0100 Subject: [PATCH] Chore: runners: fix vitest on both github and forgejo --- .github/workflows/deploy_hosted.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy_hosted.yml b/.github/workflows/deploy_hosted.yml index 74fa95f82..f71225bf0 100644 --- a/.github/workflows/deploy_hosted.yml +++ b/.github/workflows/deploy_hosted.yml @@ -45,7 +45,13 @@ jobs: export NODE_OPTIONS="--max-old-space-size=8192" npm run clean:tests npm run generate:doctests 2>&1 | grep -v "No doctests found in" - vitest --run test + if which vitest + then + vitest --run test + else + npm run test + fi + npm run clean:tests shell: bash