Skip to content

Commit

Permalink
Improve github/ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Jun 7, 2020
1 parent 2935bd5 commit bd95a79
Showing 1 changed file with 44 additions and 2 deletions.
46 changes: 44 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -7,8 +7,29 @@ on:
name: CI

jobs:
build:
name: Style + Tests
coding-guidelines:
name: Coding Guidelines

runs-on: ubuntu-latest

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

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
coverage: none

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest

- name: Run friendsofphp/php-cs-fixer
run: ./vendor/bin/php-cs-fixer fix --diff-format=udiff --dry-run --show-progress=dots --using-cache=no --verbose

type-checker:
name: Type Checker

runs-on: ubuntu-latest

Expand All @@ -33,3 +54,24 @@ jobs:

- name: Run test suite
run: composer run-script test

tests:
name: Tests

runs-on: ubuntu-latest

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

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
coverage: none

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest

- name: Run test suite
run: composer run-script test

0 comments on commit bd95a79

Please sign in to comment.