Skip to content

Commit c537807

Browse files
committed
ci: migrate to github actions
1 parent 705c8da commit c537807

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/php.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: PHP Composer
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
php-versions: ['7.1', '7.2', '7.3', '7.4']
15+
name: Build PHP version ${{ matrix.php-versions }}
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: ${{ matrix.php-versions }}
22+
23+
- name: Install dependencies
24+
run: composer install --prefer-dist --no-progress --no-suggest
25+
26+
- name: Run test suite
27+
run: composer test

0 commit comments

Comments
 (0)