-
Notifications
You must be signed in to change notification settings - Fork 15
30 lines (30 loc) · 809 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
name: CI
on: pull_request
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
uses: php-actions/composer@v5
with:
php_version: '7.4'
- name: Run linter
uses: michaelw90/PHP-Lint@master
unit-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '5.6'
tools: composer:2.2
- name: Bootstrap tests
run: cp tests/bootstrap.php.dist tests/bootstrap.php
- name: Install dependencies
run: composer install
- name: Run unit tests
run: ./vendor/phpunit/phpunit/phpunit tests/