main #2

Closed
SevenOfAces wants to merge 21 commits from main into deploy
2 changed files with 21 additions and 2 deletions
Showing only changes of commit cd75367045 - Show all commits

View file

@ -0,0 +1,19 @@
#!/bin/bash
# Run the tests and capture the output
npm run test:unit > test-output.log 2>&1
# Check if 'No tests found' is in the log
if grep -q 'No tests found' test-output.log; then
echo "No tests found. Exiting with status 0."
exit 0
else
# Check if the test run was successful
if [ $? -eq 0 ]; then
echo "Tests executed successfully."
exit 0
else
echo "Tests failed. Exiting with status 1."
exit 1
fi
fi

View file

@ -25,7 +25,7 @@ jobs:
run: npm ci
- name: Run Unit tests
run: npm run test:unit
run: ./.forgejo/workflows/run-tests.sh
- name: Run E2E tests
run: npm run test:e2e