Skip to content

Commit

Permalink
Run CI on multiple PHP versions
Browse files Browse the repository at this point in the history
  • Loading branch information
gdraynz committed May 24, 2024
1 parent 5c0f150 commit 6202d8e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 47 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/code-coverage.yaml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,36 @@
name: PHPUnit Coverage Report
name: Continuous integration

on:
workflow_dispatch: ~
push:
branches: [develop, main]
branches:
- develop
- main
pull_request:
branches: [develop, main]
workflow_dispatch: ~
branches:
- develop
- main

jobs:
ci:
name: Linting, tests and coverage
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ./

strategy:
matrix:
php-version:
- 8.1
- 8.2
- 8.3

steps:
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 5.6
tools: composer:v1
php-version: ${{ matrix.php-version }}
tools: composer:v2

- name: Validate composer.json and composer.lock
run: composer validate
Expand Down
36 changes: 0 additions & 36 deletions .github/workflows/php.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ If you find yourself needing to use some endpoints that are not yet implemented,
Installation
------------

The Alma PHP API Client library requires at least PHP 5.6.
The Alma PHP API Client library is tested against all recently supported PHP versions.
A modern, [supported PHP version](https://www.php.net/supported-versions.php) is highly recommended.

### Composer
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "2.0.7",
"type": "library",
"require": {
"php": "^5.6 || ~7.0 || ~7.1 || ~7.2 || ~7.3 || ~7.4 || ~8.0 || ~8.1 || ~8.2",
"php": "^5.6 || ~7.0 || ~7.1 || ~7.2 || ~7.3 || ~7.4 || ~8.0 || ~8.1 || ~8.2 || ~8.3",
"psr/log": "^1 || ^2 || ^3",
"ext-curl": "*",
"ext-json": "*",
Expand Down

0 comments on commit 6202d8e

Please sign in to comment.