Skip to content

Commit

Permalink
Make CI's YAML file uniform (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Sep 21, 2021
1 parent e022690 commit 6e3d5b5
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
php-version: ['7.2', '7.3', '7.4', '8.0', '8.1']
coverage: ['pcov']
include:
- { php-version: '7.1', coverage: 'xdebug' }
- php-version: '7.1'
coverage: xdebug

name: Test with PHP ${{ matrix.php-version }}

Expand Down Expand Up @@ -50,7 +51,7 @@ jobs:
- name: Set package version for Composer
uses: ergebnis/composer-root-version-action@0.2.1
with:
branch: "main"
branch: main

- name: Install dependencies
run: |
Expand All @@ -68,7 +69,7 @@ jobs:
runs-on: ubuntu-latest

env:
PHP_VERSION: 7.4
PHP_VERSION: '7.4'

steps:
- name: Checkout code
Expand All @@ -94,7 +95,7 @@ jobs:
- name: Set package version for Composer
uses: ergebnis/composer-root-version-action@0.2.1
with:
branch: "main"
branch: main

- name: Install dependencies
run: |
Expand All @@ -120,8 +121,8 @@ jobs:
runs-on: ubuntu-latest

env:
PHP_VERSION: 7.4
PHP_CS_FIXER_VERSION: v3.0.0
PHP_VERSION: '7.4'
PHP_CS_FIXER_VERSION: 'v3.0.0'

steps:
- name: Checkout
Expand All @@ -137,8 +138,8 @@ jobs:
uses: actions/cache@v2
with:
path: .php_cs.cache
key: "php-cs-fixer"
restore-keys: "php-cs-fixer"
key: php-cs-fixer
restore-keys: php-cs-fixer

- name: Run PHP-CS-Fixer, version ${{ env.PHP_CS_FIXER_VERSION }}
run: |
Expand Down

0 comments on commit 6e3d5b5

Please sign in to comment.