Skip to content

Commit 4030874

Browse files
committed
Merge branch 'master' of https://github.com/PHP-Science/Pagerank
2 parents b8513d4 + f58bdda commit 4030874

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/tests.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
run:
9+
runs-on: ${{ matrix.operating-system }}
10+
strategy:
11+
matrix:
12+
operating-system: [ubuntu-latest]
13+
php-versions: ['7.4']
14+
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
19+
- name: Setup PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: ${{ matrix.php-versions }}
23+
coverage: xdebug
24+
25+
- name: Validate composer files
26+
run: composer validate
27+
28+
- name: Install dependencies
29+
if: steps.composer-cache.outputs.cache-hit != 'true'
30+
run: composer install --prefer-dist --no-progress --no-suggest
31+
32+
- name: Run test suite
33+
run: composer test
34+
35+
- name: Publish Analysis
36+
if: matrix.php-versions == '7.4'
37+
uses: codecov/codecov-action@v1.0.13
38+
with:
39+
name: Code Analysis

0 commit comments

Comments
 (0)