Skip to content

Commit

Permalink
use run-tests.sh in husky pre-push hook
Browse files Browse the repository at this point in the history
  • Loading branch information
rush42 committed Nov 19, 2024
1 parent 5bf46ed commit dd49fa7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/.husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# This runs our unit tests for `Processing`

docker build --target testing -f ./processing.Dockerfile -t test_img .
docker run test_img
./processing/run-tests.sh

# Linting, Formating and Type-Checks for `App`

Expand Down
4 changes: 3 additions & 1 deletion processing/run-tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
# Start docker and run all tests there.

docker compose run --rm --no-deps --name processing-tests --entrypoint "busted /processing/topics/ -p %.test%.lua$" processing
docker build --target testing -f ./processing.Dockerfile -t test_img .
docker run --rm test_img
docker rmi test_img

0 comments on commit dd49fa7

Please sign in to comment.