Skip to content

Commit

Permalink
Add makefile targets for dev and test
Browse files Browse the repository at this point in the history
  • Loading branch information
LinaKind committed Jan 8, 2025
1 parent 21a5e12 commit b2379c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.PHONY: dev test

dev:
docker compose up

test:
docker compose run --rm app ./project_tests.sh
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The above command should result in a data fixture for article 09560 being create
## Run locally

```$sh
docker compose up
make dev
```

Then visit [http://localhost:8080/articles](http://localhost:8080/articles) in your browser.
Expand All @@ -28,5 +28,5 @@ docker compose -f docker-compose.dev.yml run composer install
## Run tests

```$sh
docker compose run --rm app ./project_tests.sh
make test
```

0 comments on commit b2379c5

Please sign in to comment.