chore(deps): bump codecov/codecov-action from 3.1.4 to 4.4.1 #83
Workflow file for this run
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
# GitHub Actions Documentation: https://docs.github.com/en/actions | |
name: "Continuous Integration" | |
on: | |
push: | |
branches: | |
- "main" | |
tags: | |
- "*" | |
pull_request: | |
branches: | |
- "main" | |
# Cancels all previous workflow runs for the same branch that have not yet completed. | |
concurrency: | |
# The concurrency group contains the workflow name and the branch name. | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
COMPOSER_ROOT_VERSION: "1.99.99" | |
jobs: | |
coding-standards: | |
name: "Coding standards" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Checkout repository" | |
uses: "actions/[email protected]" | |
- name: "Install PHP" | |
uses: "shivammathur/[email protected]" | |
with: | |
php-version: "latest" | |
coverage: "none" | |
- name: "Install dependencies (Composer)" | |
uses: "ramsey/[email protected]" | |
- name: "Check syntax (php-parallel-lint)" | |
run: "composer dev:lint:syntax" | |
- name: "Check coding standards (PHP_CodeSniffer)" | |
run: "composer dev:lint:style" | |
static-analysis: | |
name: "Static analysis" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Checkout repository" | |
uses: "actions/[email protected]" | |
- name: "Install PHP" | |
uses: "shivammathur/[email protected]" | |
with: | |
php-version: "latest" | |
coverage: "none" | |
- name: "Install dependencies (Composer)" | |
uses: "ramsey/[email protected]" | |
- name: "Statically analyze code (PHPStan)" | |
run: "composer dev:analyze:phpstan" | |
code-coverage: | |
name: "Code coverage" | |
needs: ["coding-standards", "static-analysis"] | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Checkout repository" | |
uses: "actions/[email protected]" | |
- name: "Install PHP" | |
uses: "shivammathur/[email protected]" | |
with: | |
php-version: "latest" | |
coverage: "pcov" | |
ini-values: "memory_limit=-1" | |
- name: "Install dependencies (Composer)" | |
uses: "ramsey/[email protected]" | |
- name: "Run unit tests (PHPUnit)" | |
run: "composer dev:test:coverage:ci" | |
- name: "Publish coverage report to Codecov" | |
uses: "codecov/[email protected]" | |
with: | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} | |
unit-tests: | |
name: "Unit tests" | |
needs: ["code-coverage"] | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
fail-fast: false | |
matrix: | |
php-version: | |
- "8.1" | |
- "8.2" | |
- "8.3" | |
operating-system: | |
- "ubuntu-latest" | |
- "windows-latest" | |
dependencies: | |
- "lowest" | |
- "highest" | |
steps: | |
- name: "Configure Git (for Windows)" | |
if: ${{ matrix.operating-system == 'windows-latest' }} | |
shell: "bash" | |
run: | | |
git config --system core.autocrlf false | |
git config --system core.eol lf | |
- name: "Checkout repository" | |
uses: "actions/[email protected]" | |
- name: "Install PHP" | |
uses: "shivammathur/[email protected]" | |
with: | |
php-version: "${{ matrix.php-version }}" | |
coverage: "none" | |
- name: "Install dependencies (Composer)" | |
uses: "ramsey/[email protected]" | |
with: | |
dependency-versions: "${{ matrix.dependencies }}" | |
- name: "Run unit tests (PHPUnit)" | |
shell: "bash" | |
run: "composer dev:test:unit" |