Skip to content

Commit 2954fd0

Browse files
committed
github actoon added
1 parent 61321eb commit 2954fd0

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/php-testing.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: PHP CI
2+
3+
on: ["push", "pull_request"]
4+
5+
jobs:
6+
run:
7+
runs-on: ${{ matrix.operating-system }}
8+
strategy:
9+
matrix:
10+
operating-system: [ubuntu-latest]
11+
php-versions: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4']
12+
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Setup PHP
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: ${{ matrix.php-versions }}
21+
extensions: gd
22+
coverage: none
23+
tools: php-cs-fixer, phpunit
24+
25+
- name: Composer Install
26+
run: composer install
27+
28+
- Running Tests
29+
run: |
30+
mkdir -p build/logs
31+
./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
32+
33+
- name: Coveralls
34+
uses: coverallsapp/github-action@master
35+
with:
36+
github-token: ${{ secrets.GITHUB_TOKEN }}
37+
path-to-lcov: build/logs/clover.xml

0 commit comments

Comments
 (0)