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)