mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
45 lines
744 B
YAML
45 lines
744 B
YAML
version: 1
|
|
|
|
environment:
|
|
php: 8.0
|
|
node: 12
|
|
|
|
services:
|
|
- mysql: 5.7
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- develop
|
|
|
|
pull_request:
|
|
branches: .*
|
|
|
|
pipeline:
|
|
- name: Setup
|
|
cmd: |
|
|
cp -v .env.testing.example .env
|
|
cp -v .env.testing.example .env.testing
|
|
composer install --no-interaction --prefer-dist --optimize-autoloader
|
|
|
|
- name: Generate Key
|
|
cmd: |
|
|
php artisan key:generate --force
|
|
|
|
- name: Passport Keys
|
|
cmd: |
|
|
php artisan passport:keys
|
|
|
|
- name: Run Migrations
|
|
cmd: |
|
|
php artisan migrate --force
|
|
|
|
- name: PHPUnit Unit Tests
|
|
cmd: |
|
|
php artisan test --testsuite Unit
|
|
|
|
- name: PHPUnit Feature Tests
|
|
cmd: |
|
|
php artisan test --testsuite Feature
|