From 70f217397608a1aee568e50c920bd85a6b7d11e6 Mon Sep 17 00:00:00 2001 From: KKlochko Date: Sat, 17 Jun 2023 15:13:17 +0300 Subject: [PATCH] Add the CI/CD configuration. --- .drone.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .drone.yaml diff --git a/.drone.yaml b/.drone.yaml new file mode 100644 index 0000000..fac5675 --- /dev/null +++ b/.drone.yaml @@ -0,0 +1,30 @@ +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 + + - 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 +