Skip to content

Commit

Permalink
Merge pull request #46 from simPod/ci
Browse files Browse the repository at this point in the history
Improve CI
  • Loading branch information
simPod committed Aug 12, 2020
2 parents db57011 + f4003bb commit 8d2b278
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 20 deletions.
30 changes: 17 additions & 13 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 @@ -15,11 +17,12 @@ jobs:
- uses: actions/checkout@v2

- name: Install PHP
uses: shivammathur/setup-php@2.2.2
uses: shivammathur/setup-php@2.4.2
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 -q --report=checkstyle | cs2pr

phpstan:
runs-on: ubuntu-18.04
Expand All @@ -46,11 +49,12 @@ jobs:
- uses: actions/checkout@v2

- name: Install PHP
uses: shivammathur/setup-php@2.2.2
uses: shivammathur/setup-php@2.4.2
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 @@ -84,11 +88,11 @@ jobs:
CLICKHOUSE_VERSION: 20

- name: Install PHP
uses: shivammathur/setup-php@2.2.2
uses: shivammathur/setup-php@2.4.2
with:
php-version: 7.3
coverage: pcov
extensions: json, mbstring
extensions: json

- name: Get Composer Cache Directory
id: composer-cache
Expand Down Expand Up @@ -134,7 +138,7 @@ jobs:
CLICKHOUSE_VERSION: 20

- name: Install PHP
uses: shivammathur/setup-php@2.2.2
uses: shivammathur/setup-php@2.4.2
with:
php-version: ${{ matrix.php }}
coverage: none
Expand Down Expand Up @@ -176,11 +180,11 @@ jobs:
CLICKHOUSE_VERSION: ${{ matrix.clickhouse-version }}

- name: Install PHP
uses: shivammathur/setup-php@2.2.2
uses: shivammathur/setup-php@2.4.2
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
14 changes: 10 additions & 4 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 @@ -15,11 +21,11 @@ jobs:
CLICKHOUSE_VERSION: 20

- name: Install PHP
uses: shivammathur/setup-php@2.2.2
uses: shivammathur/setup-php@2.4.2
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 8d2b278

Please sign in to comment.