From 42cd42cb00092e7f6b97d18ca7bbb9e3aec0c4de Mon Sep 17 00:00:00 2001 From: Andreas Wolf Date: Sat, 7 Dec 2019 16:00:06 +0100 Subject: [PATCH] [TASK] Move PHP linting to GitHub actions (#28) --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ .travis.yml | 5 ----- CHANGELOG.md | 1 + 3 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..255d880 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +on: + - pull_request + - push + +name: CI + +jobs: + php-lint: + name: PHP linter + + runs-on: ubuntu-latest + + strategy: + matrix: + php-version: + - 7.2 + - 7.3 + - 7.4 + + steps: + - name: Checkout + uses: actions/checkout@v1 + + - name: Run PHP lint + run: composer ci:php:lint diff --git a/.travis.yml b/.travis.yml index 79f4a67..0fe2aab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,11 +32,6 @@ install: git checkout .; script: -- > - echo; - echo "Linting all PHP files"; - composer ci:php:lint; - - > echo; echo "Linting all TypoScript files"; diff --git a/CHANGELOG.md b/CHANGELOG.md index 861a760..4800d21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). - Composer script for PHP linting ### Changed +- Moved 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)