Skip to content

Commit eaa5fad

Browse files
committed
Set up GitHub Actions
1 parent 5f4a36c commit eaa5fad

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Diff for: .github/workflows/push.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
on: [push, pull_request]
3+
jobs:
4+
run:
5+
runs-on: ${{ matrix.operating-system }}
6+
strategy:
7+
matrix:
8+
operating-system: [ubuntu-latest, windows-latest, macos-latest]
9+
php-versions: ['7.3', '7.4']
10+
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
15+
- name: Setup PHP
16+
uses: shivammathur/setup-php@v1
17+
with:
18+
php-version: ${{ matrix.php-versions }}
19+
coverage: xdebug
20+
21+
- name: Composer dependencies
22+
run: composer install --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
23+
24+
- name: Run phpunit
25+
run: ./vendor/bin/phpunit
26+
27+
- name: Run phpcs
28+
run: ./vendor/bin/phpcs

0 commit comments

Comments
 (0)