Compare commits

...

1 Commits

Author SHA1 Message Date
Armel van Ravels
0c1a339063 Add startup instructions
Some checks failed
PHP Composer / build (pull_request) Failing after 4s
2024-08-30 23:12:28 +02:00
4 changed files with 35 additions and 1 deletions

1
.env.example Normal file
View File

@@ -0,0 +1 @@
ENVIRONMENT=development

View File

@@ -23,12 +23,23 @@ jobs:
- name: Validate composer.json
run: composer validate
- uses: actions/setup-go@v3
with:
go-version: '1.20'
- uses: actions/go-hashfiles@v0.0.1
id: get-hash
with:
patterns: |-
go.sum
**/composer.json
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.json') }}
key: ${{ runner.os }}-php-${{ steps.get-hash.outputs.hash }}
restore-keys: |
${{ runner.os }}-php-

View File

@@ -5,6 +5,8 @@ up:
start: up composer-install
composer-install:
"$(EXEC)" composer install
stop:
docker compose stop
cmd:
@@ -13,3 +15,5 @@ phpstan:
"$(EXEC)" vendor/bin/phpstan analyse src --level 8
cs-fix:
"$(EXEC)" vendor/bin/php-cs-fixer fix --allow-risky=yes
test:
"$(EXEC)" vendor/bin/pest

View File

@@ -0,0 +1,18 @@
# Armel.net
### How to run
```
cp .env.example .env
make start
```
### How to stop
```
make stop
```
### How to test
```
make test
```