-
Notifications
You must be signed in to change notification settings - Fork 3
31 lines (31 loc) · 913 Bytes
/
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
name: ci
on: [push, pull_request]
jobs:
automated-tests:
runs-on: ubuntu-latest
strategy:
matrix:
php_version: ["8.1", "8.2"]
composer_command: ["composer install", "composer update --prefer-lowest"]
env:
PHP_VERSION: ${{ matrix.php_version }}
steps:
- name: clone
uses: actions/checkout@v2
- run: docker-compose up -d
- name: build
run: docker-compose exec -T php ${{ matrix.composer_command }}
- name: test
run: docker-compose exec -T php ./vendor/bin/phpunit
code-sniffer:
runs-on: ubuntu-latest
env:
PHP_VERSION: ${{ matrix.php_version }}
steps:
- name: clone
uses: actions/checkout@v2
- run: docker-compose up -d
- name: build
run: docker-compose exec -T php composer install
- name: test
run: docker-compose exec -T php ./vendor/bin/grumphp run