Skip to content

Commit

Permalink
Improve CI
Browse files Browse the repository at this point in the history
  • Loading branch information
simPod committed Aug 12, 2020
1 parent db57011 commit d0cf0ee
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 14 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: CI

on:
pull_request:
push:
branches:
tags:
pull_request:
- "master"
schedule:
- cron: "0 17 * * *"

jobs:
coding-standard:
Expand All @@ -19,7 +21,8 @@ jobs:
with:
php-version: 7.3
coverage: none
extensions: json, mbstring
extensions: json
tools: cs2pr

- name: Get Composer Cache Directory
id: composer-cache
Expand All @@ -36,7 +39,7 @@ jobs:
run: composer install ${DEPENDENCIES}

- name: Coding Standard
run: vendor/bin/phpcs
run: "vendor/bin/phpcs --report=checkstyle"

phpstan:
runs-on: ubuntu-18.04
Expand All @@ -50,7 +53,8 @@ jobs:
with:
php-version: 7.3
coverage: none
extensions: json, mbstring
extensions: json
tools: cs2pr

- name: Get Composer Cache Directory
id: composer-cache
Expand All @@ -67,7 +71,7 @@ jobs:
run: composer install ${DEPENDENCIES}

- name: PHPStan
run: vendor/bin/phpstan analyse
run: "vendor/bin/phpstan analyse --error-format=checkstyle | cs2pr"

coverage:
runs-on: ubuntu-18.04
Expand All @@ -88,7 +92,7 @@ jobs:
with:
php-version: 7.3
coverage: pcov
extensions: json, mbstring
extensions: json

- name: Get Composer Cache Directory
id: composer-cache
Expand Down Expand Up @@ -180,7 +184,7 @@ jobs:
with:
php-version: 7.4
coverage: none
extensions: json, mbstring
extensions: json
- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/infection.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Run Infection
name: Infection

on: [push, pull_request]
on:
pull_request:
push:
branches:
- "master"
schedule:
- cron: "0 17 * * *"

jobs:
Infection:
Expand All @@ -19,7 +25,7 @@ jobs:
with:
php-version: 7.3
coverage: xdebug
extensions: json, mbstring
extensions: json

- name: Install Dependencies
run: composer install --prefer-dist --no-progress --no-suggest
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/shepherd.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Run Shepherd
name: Shepherd

on: [push, pull_request]
on:
pull_request:
push:
branches:
- "master"
schedule:
- cron: "0 17 * * *"

jobs:
build:
Expand All @@ -13,4 +19,4 @@ jobs:
run: composer install --prefer-dist --no-progress --no-suggest

- name: Run Psalm
run: vendor/bin/psalm --threads=4 --output-format=github --shepherd
run: vendor/bin/psalm --show-info=false --stats --output-format=github --shepherd --threads=$(nproc)

0 comments on commit d0cf0ee

Please sign in to comment.