chore: add go-task

This commit is contained in:
Yorick Barbanneau 2024-10-07 10:35:12 +02:00
parent e2528bba4b
commit 51f3395f4c

26
Taskfile.dist.yaml Normal file
View file

@ -0,0 +1,26 @@
version: 3
tasks:
test:scenario1:
desc: Run scenario 1 tests (workshops management)
cmds:
- task: services:start
- python ./tests/add_workshop.py
- defer: {task: services:stop}
test:scenario2:
desc: Run scenario 2 test (homepage)
cmds:
- task: services:start
- python ./tests/homepage.py
- defer: {task: services:stop}
services:start:
internal: true
cmds:
- |
selenium-server &
npm run start &
services:stop:
internal: true
cmds:
- |
kill $(pgrep java)
kill $(pgrep node)