You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
626 B
31 lines
626 B
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: install dependencies
|
|
image: laradock/workspace:latest-8.2
|
|
commands:
|
|
- cp .env.example .env
|
|
- composer install --prefer-dist
|
|
- php artisan key:generate
|
|
|
|
- name: run migrations
|
|
image: laradock/workspace:latest-8.2
|
|
commands:
|
|
- php artisan migrate --seed
|
|
|
|
- name: run tests
|
|
image: laradock/workspace:latest-8.2
|
|
commands:
|
|
- php artisan test
|
|
|
|
services:
|
|
- name: postgres
|
|
image: postgres:15-alpine
|
|
environment:
|
|
POSTGRES_DB: laravel
|
|
POSTGRES_USER: laravel
|
|
POSTGRES_PASSWORD: testpassword
|
|
|