Skip to content

Commit

Permalink
Run tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
minottic committed Nov 13, 2024
1 parent 9fbc23c commit af08fec
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 14 deletions.
13 changes: 13 additions & 0 deletions .github/compose.dev.test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
services:
frontend:
volumes:
- ./entrypoints/npm_tests.sh:/docker-entrypoints/9.sh
searchapi:
volumes:
- ./entrypoints/npm_tests.sh:/docker-entrypoints/9.sh
landingpage:
volumes:
- ./entrypoints/npm_tests.sh:/docker-entrypoints/9.sh
backend:
volumes:
- ./services/backend/services/${BE_VERSION}/entrypoints/tests.sh:/docker-entrypoints/9.sh
4 changes: 3 additions & 1 deletion .github/workflows/compose_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,6 @@ jobs:
export OIDC_ENABLED=${{ matrix.OIDC_ENABLED }}
export BE_VERSION=${{ matrix.BE_VERSION }}
export DEV=${{ matrix.DEV }}
docker compose --profile '*' up --wait --wait-timeout 600
docker compose --profile '*' \
-f compose.yaml ${DEV:+-f .github/compose.dev.test.yaml} \
up --wait --wait-timeout 600
5 changes: 0 additions & 5 deletions entrypoints/karma_tests.sh

This file was deleted.

3 changes: 3 additions & 0 deletions entrypoints/npm_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

npm run test
3 changes: 0 additions & 3 deletions services/backend/services/v3/entrypoints/tests.sh

This file was deleted.

1 change: 1 addition & 0 deletions services/backend/services/v3/entrypoints/tests.sh
5 changes: 0 additions & 5 deletions services/searchapi/entrypoints/tests.sh

This file was deleted.

0 comments on commit af08fec

Please sign in to comment.