-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (30 loc) · 906 Bytes
/
main.yml
File metadata and controls
37 lines (30 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
tests:
runs-on: ubuntu-latest
name: Tests
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.3'
extensions: json, pdo, grpc
coverage: xdebug
tools: php-cs-fixer, phpunit, codeception, composer
- name: Install Composer
run: composer install
- name: Detect coding standard violations
run: vendor/bin/phpcs -sv --extensions=php --standard=PSR12 --ignore=vendor,tests,c3.php .
- name: Execute tests
run: vendor/bin/codecept run --coverage --coverage-text --coverage-xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}