Skip to content

Commit

Permalink
Changed GitHub Action workflow (Added phploc)
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna committed Sep 11, 2024
1 parent b0b78a9 commit 003bf11
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 34 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Code coverage
name: Code Coverage

on: [push]

Expand All @@ -25,5 +25,5 @@ jobs:
- name: Execute tests (Unit and Feature tests) via PHPUnit 🧪
run: vendor/bin/phpunit --coverage-clover=coverage.xml

- name: Submit code coverage 🔭
- name: Submit code coverage report 🔭
run: bash <(curl -s https://codecov.io/bash)
2 changes: 1 addition & 1 deletion .github/workflows/php-cs-fixer.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check & fix styling
name: Coding Guidelines

on:
push: # (or pull requests)
Expand Down
31 changes: 0 additions & 31 deletions .github/workflows/psalm.yml

This file was deleted.

67 changes: 67 additions & 0 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Quality Assurance

on:
push: # (or pull requests)
paths:
- '.github/workflows/**'
- '**.php'
- 'psalm.xml.dist'
- 'composer.json'

jobs:
composer-validate:
name: composer-validate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup PHP 🔧
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none
tools: composer:v2

- name: Validate composer.json and composer.lock 👀
run: composer validate

psalm:
name: psalm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup PHP 🔧
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none
tools: composer:v2

- name: Install Dependencies 🔧
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Run psalm
run: vendor/bin/psalm --output-format=github

phploc:
name: phploc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup PHP 🔧
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none
tools: composer:v2

- name: Install Dependencies 🔧
run: composer require --dev phploc/phploc

- name: Run phploc
run: vendor/bin/phploc src/

0 comments on commit 003bf11

Please sign in to comment.