Skip to content

Commit

Permalink
Merge pull request #18 from IQ2i/upgrade-ci
Browse files Browse the repository at this point in the history
Upgrade CI
  • Loading branch information
loicsapone authored Feb 26, 2021
2 parents 9950065 + b76f0f9 commit c854ebc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,12 @@ on:

jobs:
tests:
name: "CI"

runs-on: ubuntu-latest
name: "CI ${{ matrix.operating-system }} / PHP ${{ matrix.php-version }}"
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
php-version:
- "7.2"
- "7.3"
- "7.4"
operating-system: ['ubuntu-latest', 'macos-latest']
php-version: ['7.2.5', '7.3', '7.4', '8.0']

steps:
- name: "Checkout"
Expand All @@ -28,7 +25,7 @@ jobs:
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
tools: composer:v1, php-cs-fixer, phpstan
tools: composer:v2, php-cs-fixer, phpstan

- name: Get composer cache directory
id: composercache
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": "^7.2.5",
"php": "^7.2.5|^8.0",
"symfony/filesystem": "^4.0|^5.0",
"symfony/property-access": "^4.0|^5.0",
"symfony/serializer": "^4.0|^5.0"
Expand Down
5 changes: 5 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ parameters:
- DataImporter.php
fileExtensions:
- php
reportUnmatchedIgnoredErrors: false
ignoreErrors:
-
message: '#Else branch is unreachable because ternary operator condition is always true.#'
path: Reader/CsvReader.php

0 comments on commit c854ebc

Please sign in to comment.