-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 1.11 KB
/
ci.yml
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
name: "Password Generator Test Suite"
on: [push, pull_request]
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: pcov
extensions: none, curl, dom, json, libxml, mbstring, phar, soap, tokenizer, xml, xmlwriter, simplexml
ini-values: assert.exception=1, zend.assertions=1, error_reporting=-1, log_errors_max_len=0, display_errors=On
tools: php-cs-fixer, phpstan, psalm, phpunit:${{ matrix.phpunit-versions }}
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Composer dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader
- name: Test with phpunit
run: vendor/bin/phpunit --coverage-clover=coverage.xml
- name: Send code coverage report to codecov.io
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Run PHPStan
run: phpstan analyse src
- name: Run Psalm
run: psalm --output-format=github