Skip to content

Commit

Permalink
Fix test-examples in Justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelprazak committed Oct 5, 2023
1 parent 2fb5f7a commit e86aac1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -286,22 +286,23 @@ clean-test-templates:
# Runs an example test
test-example example-name:
echo "Testing example {{example-name}}"
@echo "Testing example {{example-name}}"
scala-cli compile examples/{{example-name}}
echo "----------------------------------------"
@echo "----------------------------------------"
# Cleans after an example test
clean-test-example example-name:
echo "Cleaning example test for {{example-name}}"
echo "----------------------------------------"
@echo "Cleaning example test for {{example-name}}"
scala-cli clean examples/{{example-name}}
@echo "----------------------------------------"
# Runs all template tests
test-examples:
just test-example aws-s3-folder
for file in `ls -d examples/*/ | cut -f2 -d'/'`; do just test-example $file; done
# Cleans after template tests
clean-test-examples:
just clean-test-example aws-s3-folder
for file in `ls -d examples/*/ | cut -f2 -d'/'`; do just clean-test-example $file; done
####################
# Demo
Expand Down

0 comments on commit e86aac1

Please sign in to comment.