Skip to content

Commit

Permalink
Switch Makefile from deps to composer (e.g. make composerupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
forevermatt committed May 15, 2024
1 parent 2e38916 commit c65804e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
### Feature PR Checklist
- [ ] Documentation (README, local.env.dist, etc.)
- [ ] Unit tests created or updated
- [ ] Run `make depsshow`
- [ ] Run `make composershow`
- [ ] Run `make psr2`
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
start: app

app: db deps
app: db composer
docker-compose up -d app phpmyadmin

appfortests: testdb depsfortests
appfortests: testdb composerfortests
docker-compose up -d appfortests

bash:
docker-compose run --rm cli bash

deps:
composer:
docker-compose run --rm cli composer install

depsfortests:
composerfortests:
docker-compose run --rm appfortests composer install
docker-compose run --rm dynamorestart composer install

depsshow:
composershow:
docker-compose run --rm cli bash -c 'composer show --format=json --no-dev --no-ansi --locked | jq "[.locked[] | { \"name\": .name, \"version\": .version }]" > dependencies.json'

depsupdate:
composerupdate:
docker-compose run --rm cli composer update
make depsshow
make composershow

db:
docker-compose up -d db
Expand Down

0 comments on commit c65804e

Please sign in to comment.