feat: setup tests
This commit is contained in:
parent
6b35056d2c
commit
26aeb356d8
|
|
@ -18,16 +18,20 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run Tests
|
||||||
run: |
|
uses: docker://laravelsail/php84-composer:latest
|
||||||
docker run --rm \
|
env:
|
||||||
-v /workspace:/app \
|
APP_ENV: testing
|
||||||
-w /app \
|
APP_KEY: base64:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
|
||||||
laravelsail/php84-composer:latest \
|
DB_CONNECTION: sqlite
|
||||||
|
DB_DATABASE: ":memory:"
|
||||||
|
with:
|
||||||
|
args: |
|
||||||
bash -c "composer install --no-interaction --ignore-platform-req=ext-intl && php artisan test"
|
bash -c "composer install --no-interaction --ignore-platform-req=ext-intl && php artisan test"
|
||||||
|
|
||||||
# =========================
|
# =========================
|
||||||
# BUILD & PUSH IMAGE
|
# BUILD & PUSH IMAGE
|
||||||
# =========================
|
# =========================
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue