-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (23 loc) · 880 Bytes
/
php.yml
File metadata and controls
33 lines (23 loc) · 880 Bytes
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
name: PHP Composer
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build containers
run: docker-compose build && docker-compose up -d && sleep 30
- name: Validate composer.json and composer.lock
run: docker-compose run --rm testing-playground composer validate
- name: Install dependencies
run: docker-compose run --rm testing-playground composer install --prefer-dist --no-progress --no-suggest
- name: Run PHPSpec tests
run: docker-compose run --rm testing-playground vendor/bin/phpspec run
- name: Run PHPUnit tests
run: docker-compose run --rm testing-playground vendor/bin/phpunit
- name: Run Infection
run: docker-compose run --rm testing-playground vendor/bin/infection