respect-validation/.github/workflows/ci-code.yml
Alexandre Gomes Gaigalas b69beb1db7 Refactor CI Workflows
- Added a composite action for common setup tasks.
 - Shorter names that fit better GitHub runner displays.
 - Changed ci-perf to only run if src or tests change.
 - Removed redundant step names when they're obvious.
2026-01-28 17:31:37 +00:00

59 lines
1.2 KiB
YAML

name: CI - Code
on:
push:
paths-ignore:
- 'bin/**'
- 'docs/**'
pull_request:
paths-ignore:
- 'bin/**'
- 'docs/**'
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ["8.5"]
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup-action
with:
php-version: ${{ matrix.php-version }}
- run: composer phpunit
- run: composer pest
code-coverage:
name: Code Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup-action
with:
coverage: pcov
- name: Generating Code Coverage Report
run: ./vendor/bin/pest --compact --coverage-clover=coverage.xml
- name: Send Code Coverage Report to Codecov.io
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
static-analysis:
name: Static Analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup-action
- run: composer phpcs
- run: composer phpstan
- run: bin/console lint:mixin