chore(ci): fix config #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continous integration | |
on: | |
pull_request: | |
types: [opened, reopened] | |
push: | |
branches: | |
- '**' | |
- '!master' | |
jobs: | |
code_checks: | |
name: Check code style | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.1' | |
- name: Install dependencies | |
run: composer install | |
- name: Test code style | |
run: vendor/bin/ecs | |
- name: Static analysis (Psalm) | |
run: vendor/bin/psalm | |
- name: Build test help files | |
run: vendor/bin/codecept build | |
- name: Static analysis (PHPStan) | |
run: vendor/bin/phpstan | |
- name: Run tests | |
run: vendor/bin/codecept run --coverage-xml | |
commitlint: | |
name: commit-lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: wagoid/commitlint-github-action@v5 | |
with: | |
configFile: ../../commitlint.config.js |