Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cerbero90 authored Jun 21, 2023
1 parent 112b042 commit ec44856
Showing 1 changed file with 6 additions and 35 deletions.
41 changes: 6 additions & 35 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,43 +67,14 @@ jobs:
run: |
vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover
style:
linting:
runs-on: ubuntu-latest

name: Coding style
name: Linting

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
tools: phpcs
coverage: none

- name: Execute check
run: phpcs --standard=psr12 src/

static:
runs-on: ubuntu-latest

name: Static analysis

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
- uses: actions/checkout@v3
- name: Duster Lint
uses: tighten/duster-action@v1
with:
php-version: 8.1
tools: composer:v2
coverage: none

- name: Install dependencies
run: composer update --prefer-stable --prefer-dist --no-interaction

- name: Execute check
run: vendor/bin/phpstan analyse
args: lint -u tlint,phpcodesniffer,pint,phpstan

0 comments on commit ec44856

Please sign in to comment.