Separated coding standards and static analysis checks to their own jobs in CI

This commit is contained in:
Chris Kankiewicz
2021-02-25 22:20:24 -07:00
parent 21e05f402e
commit 184c261034

View File

@@ -2,8 +2,36 @@ name: Directory Lister Test Suite
on: [push]
jobs:
php:
name: PHP Checks & Tests
coding-standards:
name: Coding Standards
runs-on: 'ubuntu-latest'
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install PHP Dependencies
run: composer update
- name: Verify Coding Standards
run: app/vendor/bin/php-cs-fixer fix --diff --dry-run
static-analysis:
name: Static Analysis
runs-on: 'ubuntu-latest'
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install PHP Dependencies
run: composer update
- name: Run Static Analysis
run: app/vendor/bin/psalm
tests:
name: Tests
runs-on: 'ubuntu-latest'
services:
@@ -39,18 +67,9 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Validate Composer Files
run: composer validate
- name: Install PHP Dependencies
run: composer update
- name: Verify Coding Standards
run: app/vendor/bin/php-cs-fixer fix --diff --dry-run
- name: Run Static Analysis
run: app/vendor/bin/psalm --show-info=true
- name: Run Tests
run: app/vendor/bin/phpunit --coverage-text