|
@@ -1,48 +0,0 @@
|
|
|
-version: 2
|
|
|
-jobs:
|
|
|
- build:
|
|
|
- docker:
|
|
|
- - image: cimg/php:8.3.8
|
|
|
- steps:
|
|
|
- - checkout
|
|
|
-
|
|
|
- - run:
|
|
|
- name: Create Environment file and generate app key
|
|
|
- command: mv .env.testing .env
|
|
|
-
|
|
|
- - run:
|
|
|
- name: Install system dependencies
|
|
|
- command: |
|
|
|
- sudo apt-get update && sudo apt-get install -y zlib1g-dev libsqlite3-dev
|
|
|
-
|
|
|
- - restore_cache:
|
|
|
- keys:
|
|
|
- - v2-dependencies-{{ checksum "composer.json" }}
|
|
|
- - v2-dependencies-
|
|
|
-
|
|
|
- - run: composer install -n --prefer-dist
|
|
|
-
|
|
|
- - save_cache:
|
|
|
- key: v2-dependencies-{{ checksum "composer.json" }}
|
|
|
- paths:
|
|
|
- - vendor
|
|
|
-
|
|
|
- - run: php artisan config:cache
|
|
|
- - run: php artisan route:clear
|
|
|
- - run: php artisan storage:link
|
|
|
- - run: php artisan key:generate
|
|
|
-
|
|
|
- # ← New steps for JUnit output
|
|
|
- - run:
|
|
|
- name: Prepare JUnit output directory
|
|
|
- command: mkdir -p tests/_output
|
|
|
-
|
|
|
- - run:
|
|
|
- name: Run tests and generate JUnit XML report
|
|
|
- command: php artisan test --env=testing --log-junit tests/_output/junit.xml
|
|
|
-
|
|
|
- - store_test_results:
|
|
|
- path: tests/_output
|
|
|
-
|
|
|
- - store_artifacts:
|
|
|
- path: tests/_output
|