Skip to content

Commit

Permalink
Merge pull request #6 from pixelfederation/gh_actions_experiment
Browse files Browse the repository at this point in the history
Create php.yml - github actions for CI for php 7.4
  • Loading branch information
Martin Fris authored Nov 17, 2021
2 parents 36c0234 + 04b495c commit 6a4fa22
Show file tree
Hide file tree
Showing 11 changed files with 540 additions and 423 deletions.
21 changes: 16 additions & 5 deletions .github/workflows /php-ci.yml → .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
name: PHP Continuous Integration
name: PHP Composer

on:
push:
branches: [ $default-branch ]
branches: [ master ]
pull_request:
branches: [ $default-branch ]
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '7.4' ] # , '8.0' PHP 8 is not supported yet

steps:
- uses: actions/checkout@v2

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}

- name: Validate composer.json and composer.lock
run: composer validate --strict

Expand All @@ -26,11 +34,14 @@ jobs:
restore-keys: |
${{ runner.os }}-php-
- name: Check PHP Version
run: php -v

- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Check vendor licenses
run: composer run-script lic-check

- name: Run coding standards checks
run: composer run-script lic-check
- name: Run static analysis (GrumPHP)
run: composer run-script grumphp
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
],
"require": {
"php": ">=7.4",
"php": "^7.4",
"ackintosh/ganesha": "^2.0",
"beberlei/assert": "^3.3",
"doctrine/annotations": "^1.12",
Expand All @@ -33,7 +33,7 @@
"phpcompatibility/php-compatibility": "^9.1",
"phpmd/phpmd": "^2.6",
"phpro/grumphp": "^1.3",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan": "^1.1",
"phpunit/phpunit": "^9.5",
"pixelfederation/coding-standards": "^2.0",
"roave/security-advisories": "dev-master",
Expand Down
Loading

0 comments on commit 6a4fa22

Please sign in to comment.