Skip to content

Commit

Permalink
Merge pull request #49 from williamdes/patch-2
Browse files Browse the repository at this point in the history
Add more PHP versions to the CI and bump actions
  • Loading branch information
mnapoli authored Sep 18, 2023
2 parents dfb4dc4 + 1014579 commit fc00418
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ name: CI

on:
push:
branches: ['master']
pull_request:
branches: ['*']
pull_request:
schedule:
- cron: '0 0 * * *'

Expand All @@ -15,23 +14,23 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
php: [ '7.3', '7.4', '8.0' ]
php: [ '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
dependency-version: [ '' ]
include:
- php: '7.3'
dependency-version: '--prefer-lowest'
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: none
- name: Cache Composer dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.composer/cache
key: php-${{ matrix.php }}-composer-locked-${{ hashFiles('composer.lock') }}
Expand All @@ -46,15 +45,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
tools: composer:v2, cs2pr
tools: cs2pr
coverage: none
- name: Cache Composer dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.composer/cache
key: php-composer-locked-${{ hashFiles('composer.lock') }}
Expand Down
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,10 @@
"phpunit/phpunit": "^9.0",
"athletic/athletic": "~0.1.8",
"mnapoli/hard-mode": "~0.3.0"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}

0 comments on commit fc00418

Please sign in to comment.