Skip to content

Commit

Permalink
Merge pull request #9 from rtlopez/ci-fix
Browse files Browse the repository at this point in the history
CI fixes
  • Loading branch information
rtlopez authored Jun 24, 2021
2 parents e92ef44 + 2918bdf commit a23b717
Show file tree
Hide file tree
Showing 12 changed files with 988 additions and 320 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,23 @@ on:
jobs:
test:

runs-on: ubuntu-latest
runs-on: ubuntu-18.04
strategy:
matrix:
php: [ '7.2', '7.3', '7.4', '8.0' ]

name: PHP ${{ matrix.php }} test

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@master

- name: Setup PHP ${{ matrix.php }}
uses: nanasess/setup-php@master
with:
php-version: ${{ matrix.php }}

- name: Print php version
run: php --version

- name: Validate composer.json and composer.lock
run: composer validate
Expand All @@ -25,6 +38,3 @@ jobs:

- name: Run static analysis
run: composer run-script analyze

- name: Print php version
run: php --version
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
.settings
.buildpath
.*.swp
.phpunit.result.cache
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"ext-bcmath": "*"
},
"require-dev": {
"phpunit/phpunit": "^4.0",
"phpstan/phpstan": "^0.12.18"
"phpunit/phpunit": "^8.0",
"phpstan/phpstan": "^0.12.90"
},
"scripts": {
"test": "vendor/bin/phpunit",
Expand Down
Loading

0 comments on commit a23b717

Please sign in to comment.