-
Notifications
You must be signed in to change notification settings - Fork 6
/
--.gitlab-ci.yml
49 lines (46 loc) · 977 Bytes
/
--.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
stages:
- test
include:
- project: 'muensmedia-docker/gitlab-ci-recipes'
file:
- '/package_manager/.composer.yml'
composer install dev:
stage: test
extends:
- .composer-install
variables:
PHP_VERSION: '8.3'
FOLDER_TO_RUN_COMPOSER: './app/'
COMPOSER_FOLDER: './app/vendor/'
COMPOSER_PARAMETERS: '--optimize-autoloader --no-interaction'
artifacts:
paths:
- ${COMPOSER_FOLDER}
expire_in: 14 days
cache:
key: ${CI_COMMIT_REF_SLUG}-dev
paths:
- ${COMPOSER_FOLDER}
php tests:
extends:
- composer install dev
needs:
- composer install dev
dependencies:
- composer install dev
variables:
APP_ENV: 'testing'
script:
- cd laravel/
# seed the database
- php artisan migrate:fresh
# run tests
- php artisan test --compact --profile
artifacts:
when: always
paths:
- laravel/junit.xml
reports:
junit: laravel/junit.xml
cache:
policy: pull