Skip to content

Commit 45a5ac7

Browse files
author
seba
committedNov 9, 2021
veryfi-php
0 parents  commit 45a5ac7

File tree

120 files changed

+9298
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+9298
-0
lines changed
 

‎.github/workflows/main.yml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Veryfi-php main update
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
10+
tests:
11+
12+
runs-on: ${{ matrix.os }}
13+
14+
strategy:
15+
16+
fail-fast: false
17+
18+
matrix:
19+
os:
20+
- ubuntu-latest
21+
22+
php-version:
23+
- "8.0"
24+
- "8.1"
25+
26+
steps:
27+
- uses: actions/checkout@v2
28+
29+
- name: Validate composer.json and composer.lock
30+
run: composer validate --strict
31+
32+
- name : Install PHP
33+
uses: shivammathur/setup-php@v2
34+
with:
35+
php-version: ${{ matrix.php-version }}
36+
tools: none
37+
38+
- name: Install dependencies
39+
run: composer install --prefer-dist
40+
41+
- name: PHPUnit tests
42+
run: XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-text --coverage-clover=report.xml
43+
44+
- name: Generate Badges
45+
run: cd metrics && python ./generate_badges.py && cd ..
46+
47+
- name: Commit Code Coverage Image to Repo
48+
if: matrix.php-version == '8.0'
49+
uses: EndBug/add-and-commit@v5
50+
with:
51+
author_name: Github actions
52+
author_email: veryfi@veryfi.com
53+
message: "Update report"
54+
add: "./metrics"
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

‎.github/workflows/php.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: PHP Unit testing
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '**'
7+
8+
jobs:
9+
10+
tests:
11+
12+
runs-on: ${{ matrix.os }}
13+
14+
strategy:
15+
16+
fail-fast: false
17+
18+
matrix:
19+
os:
20+
- ubuntu-latest
21+
22+
php-version:
23+
- "8.0"
24+
- "8.1"
25+
26+
steps:
27+
- uses: actions/checkout@v2
28+
29+
- name: Validate composer.json and composer.lock
30+
run: composer validate --strict
31+
32+
- name: Install PHP
33+
uses: shivammathur/setup-php@v2
34+
with:
35+
php-version: ${{ matrix.php-version }}
36+
tools: none
37+
38+
- name: Install dependencies
39+
run: composer install --prefer-dist
40+
41+
- name: PHPUnit tests
42+
run: XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-text --coverage-clover=report.xml
43+
44+
- name: Generate Badges
45+
run: cd metrics && python ./generate_badges.py && cd ..

0 commit comments

Comments
 (0)
Please sign in to comment.