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)