mirror of
https://github.com/donpat1to/Schichtenplaner.git
synced 2025-11-30 22:45:46 +01:00
if jest nono - nono tests
This commit is contained in:
12
.github/workflows/docker.yml
vendored
12
.github/workflows/docker.yml
vendored
@@ -78,18 +78,14 @@ jobs:
|
|||||||
working-directory: ./backend
|
working-directory: ./backend
|
||||||
run: npx tsc --noEmit
|
run: npx tsc --noEmit
|
||||||
|
|
||||||
- name: Check if tests exist and run them
|
- name: Run backend tests
|
||||||
working-directory: ./backend
|
working-directory: ./backend
|
||||||
run: |
|
run: |
|
||||||
# Check if jest is available and test script exists
|
# Skip tests if jest is not installed
|
||||||
if npx --no-install jest --version > /dev/null 2>&1; then
|
if [ -f "node_modules/.bin/jest" ]; then
|
||||||
echo "Running tests with Jest..."
|
|
||||||
npm test
|
|
||||||
elif [ -f "package.json" ] && grep -q '"test"' package.json; then
|
|
||||||
echo "Running test script from package.json..."
|
|
||||||
npm test
|
npm test
|
||||||
else
|
else
|
||||||
echo "No tests configured. Skipping test execution."
|
echo "⚠️ Jest not installed. Skipping tests."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
|
|||||||
Reference in New Issue
Block a user