From f5cd65ec94db36bfab9d675a4ad587de1986c644 Mon Sep 17 00:00:00 2001 From: Andreas Wolf Date: Sat, 7 Dec 2019 16:37:17 +0100 Subject: [PATCH] [TASK] Move PHP code sniffing to GitHub actions (#30) Resolves: #13 --- .github/workflows/ci.yml | 15 +++++++++++++++ .travis.yml | 5 ----- CHANGELOG.md | 3 ++- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 255d880..697435c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,3 +23,18 @@ jobs: - name: Run PHP lint run: composer ci:php:lint + + php-code-sniffer: + name: PHP Code Sniffer + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v1 + + - name: Install Composer dependencies + run: composer install --no-progress + + - name: Run PHP Code Sniffer + run: composer ci:php:sniff diff --git a/.travis.yml b/.travis.yml index 0fe2aab..bc159f9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,11 +47,6 @@ script: echo "Running the functional tests"; composer ci:tests:functional; -- > - echo; - echo "Running PHP_CodeSniffer"; - composer ci:php:sniff; - jobs: include: - stage: test diff --git a/CHANGELOG.md b/CHANGELOG.md index 4800d21..4820d8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,8 @@ This project adheres to [Semantic Versioning](https://semver.org/). - Composer script for PHP linting ### Changed -- Moved PHP linting to GitHub actions (#12) +- Move PHP code sniffing to GitHub actions (#13) +- Move PHP linting to GitHub actions (#12) - Use `.typoscript` as file extension for TS files (#19) - Convert the PHP namespaces to "TTN" (#8) - Update the contact email in the CoC document (#6)