Compare commits
4 Commits
2477cdba16
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| e6bc890bd4 | |||
|
|
66ee9d55bf | ||
| 8af77cc77e | |||
|
|
f2273a0cdb |
@@ -23,12 +23,23 @@ jobs:
|
|||||||
- name: Validate composer.json
|
- name: Validate composer.json
|
||||||
run: composer validate
|
run: composer validate
|
||||||
|
|
||||||
|
- uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: '1.20'
|
||||||
|
|
||||||
|
- uses: https://gitea.com/actions/go-hashfiles@v0.0.1
|
||||||
|
id: get-hash
|
||||||
|
with:
|
||||||
|
patterns: |-
|
||||||
|
go.sum
|
||||||
|
**/composer.json
|
||||||
|
|
||||||
- name: Cache Composer packages
|
- name: Cache Composer packages
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: vendor
|
path: vendor
|
||||||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.json') }}
|
key: ${{ runner.os }}-php-${{ steps.get-hash.outputs.hash }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-php-
|
${{ runner.os }}-php-
|
||||||
|
|
||||||
|
|||||||
12
Makefile
12
Makefile
@@ -1,19 +1,17 @@
|
|||||||
EXEC="docker compose exec php"
|
|
||||||
|
|
||||||
up:
|
up:
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
|
|
||||||
start: up composer-install
|
start: up composer-install
|
||||||
|
|
||||||
composer-install:
|
composer-install:
|
||||||
"$(EXEC)" composer install
|
docker compose exec -T php composer install
|
||||||
stop:
|
stop:
|
||||||
docker compose stop
|
docker compose stop
|
||||||
cmd:
|
cmd:
|
||||||
"$(EXEC)" sh
|
docker compose exec php sh
|
||||||
phpstan:
|
phpstan:
|
||||||
"$(EXEC)" vendor/bin/phpstan analyse src --level 8
|
docker compose exec -T php vendor/bin/phpstan analyse src --level 8
|
||||||
cs-fix:
|
cs-fix:
|
||||||
"$(EXEC)" vendor/bin/php-cs-fixer fix --allow-risky=yes
|
docker compose exec -T php vendor/bin/php-cs-fixer fix --allow-risky=yes
|
||||||
test:
|
test:
|
||||||
"$(EXEC)" vendor/bin/pest
|
docker compose exec -T php vendor/bin/pest
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ cp .env.example .env
|
|||||||
make start
|
make start
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You will now have a webserver running on localhost:443 and localhost:80
|
||||||
|
|
||||||
### How to stop
|
### How to stop
|
||||||
```
|
```
|
||||||
make stop
|
make stop
|
||||||
|
|||||||
@@ -16,4 +16,4 @@ it('view is rendered', function (): void {
|
|||||||
$body->rewind();
|
$body->rewind();
|
||||||
|
|
||||||
expect($body->getContents())->toBe('Welkom');
|
expect($body->getContents())->toBe('Welkom');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user