Skip to content

Commit

Permalink
Move CS to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
simPod committed Mar 14, 2021
1 parent 8a78a51 commit e6d768d
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "Coding Standards"

on:
pull_request:
push:
branches:
- "master"

jobs:
coding-standards:
name: "Coding Standards"
runs-on: "ubuntu-20.04"

strategy:
matrix:
php-version:
- "7.3"

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

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
tools: "cs2pr"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"

- name: "Install php-cs-fixer"
run: composer require "friendsofphp/php-cs-fixer:^2.16"

- name: "Run php-cs-fixer"
run: "vendor/bin/php-cs-fixer fix --diff --dry-run -v"
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@ install: composer update --prefer-source --no-interaction
script:
- composer check-platform-reqs
- vendor/bin/phpunit --debug
- if [ "$TRAVIS_PHP_VERSION" != "8.0" ]; then composer require "friendsofphp/php-cs-fixer:^2.16" && vendor/bin/php-cs-fixer fix --diff --dry-run -v; fi

0 comments on commit e6d768d

Please sign in to comment.