Skip to content

Commit ebd3965

Browse files
committed
Add ci file for GIthub Actions
1 parent 069b233 commit ebd3965

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/blank.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
tags:
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
php: [7.1, 7.2, 7.3]
15+
steps:
16+
- uses: actions/checkout@v1
17+
- name: Show php version
18+
run: php${{ matrix.php }} -v && composer -V
19+
- name: Show docker and docker-compose versions
20+
run: |
21+
docker version
22+
docker-compose version
23+
- name: Build docker images
24+
run: |
25+
docker-compose build --build-arg PHP_VERSION=${{ matrix.php }}
26+
docker-compose run --rm tests composer install --no-interaction
27+
docker-compose run --rm tests ./vendor/bin/phpunit --coverage-clover ./clover.xml

0 commit comments

Comments
 (0)