Skip to content

Commit

Permalink
Merge pull request #19 from peter279k/issue_#18
Browse files Browse the repository at this point in the history
Migrate to GitHub actions
  • Loading branch information
maks-rafalko authored Jan 9, 2023
2 parents 0cc76d9 + aad44a5 commit afdc476
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 48 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on: [ push, pull_request ]

jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ ubuntu-latest ]
php-versions: [ '8.0', '8.1', '8.2' ]
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: ast
coverage: pcov

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

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

- name: Run analyse for PHP 8.0
if: matrix.php-versions == '8.0'
run: make ci-analyze --keep-going

- name: Run tests
run: make ci-test --keep-going
46 changes: 0 additions & 46 deletions .travis.yml

This file was deleted.

7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,18 @@
"require": {},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.16",
"infection/infection": "^0.15.0",
"infection/infection": "^0.19.0",
"phan/phan": "^2.4 || ^3",
"php-coveralls/php-coveralls": "^2.2",
"phpstan/phpstan": "^0.12.8",
"phpunit/phpunit": "^8.5",
"vimeo/psalm": "^3.8"
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"infection/extension-installer": true
}
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit afdc476

Please sign in to comment.