Browse Source

update workflow to include matrix of phps

pull/107/head
Josemar Lohn 3 years ago
parent
commit
b43287ba21
No known key found for this signature in database GPG Key ID: 441E69D80355E46F
3 changed files with 52 additions and 44 deletions
  1. +31
    -22
      .github/workflows/php.yml
  2. +7
    -7
      composer.json
  3. +14
    -15
      composer.lock

+ 31
- 22
.github/workflows/php.yml View File

@ -2,32 +2,41 @@ name: PHP Composer
on: on:
push: push:
branches: [ main ]
branches: [main]
pull_request: pull_request:
branches: [ main ]
branches: [main]
jobs: jobs:
build: build:
strategy:
matrix:
php-versions: ["7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1"]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run test suite
run: composer run-script test
- uses: actions/checkout@v2
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, simplexml, dom, curl
coverage: pcov
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run test suite
run: composer run-script test

+ 7
- 7
composer.json View File

@ -7,12 +7,12 @@
"require": { "require": {
"mf2/mf2": "^0.4", "mf2/mf2": "^0.4",
"ezyang/htmlpurifier": "^4.10", "ezyang/htmlpurifier": "^4.10",
"indieweb/link-rel-parser": "0.1.*",
"dg/twitter-php": "3.6.*",
"p3k/timezone": "~0.1.0",
"p3k/http": "~0.1.11",
"cebe/markdown": "1.1.*",
"p3k/picofeed": "~0.1.40",
"indieweb/link-rel-parser": "^0.1.0",
"dg/twitter-php": "^3.0.0",
"p3k/timezone": "^0.1.0",
"p3k/http": "^0.1.0",
"cebe/markdown": "^1.1.0",
"p3k/picofeed": "^0.1.0",
"masterminds/html5": "^2.3" "masterminds/html5": "^2.3"
}, },
"autoload": { "autoload": {
@ -27,7 +27,7 @@
"require-dev": { "require-dev": {
"league/plates": "3.*", "league/plates": "3.*",
"league/route": "1.*", "league/route": "1.*",
"phpunit/phpunit": "^9.0.0"
"phpunit/phpunit": "^8.0.0|^9.0.0"
}, },
"autoload-dev": { "autoload-dev": {
"files": [ "files": [

+ 14
- 15
composer.lock View File

@ -4,20 +4,20 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "1e861fcf3e3f352fc91a011ff1bae693",
"content-hash": "1b2e5d5447b1df7329bbcaf10c44d29f",
"packages": [ "packages": [
{ {
"name": "cebe/markdown", "name": "cebe/markdown",
"version": "1.1.2",
"version": "1.2.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/cebe/markdown.git", "url": "https://github.com/cebe/markdown.git",
"reference": "25b28bae8a6f185b5030673af77b32e1163d5c6e"
"reference": "9bac5e971dd391e2802dca5400bbeacbaea9eb86"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/cebe/markdown/zipball/25b28bae8a6f185b5030673af77b32e1163d5c6e",
"reference": "25b28bae8a6f185b5030673af77b32e1163d5c6e",
"url": "https://api.github.com/repos/cebe/markdown/zipball/9bac5e971dd391e2802dca5400bbeacbaea9eb86",
"reference": "9bac5e971dd391e2802dca5400bbeacbaea9eb86",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -35,7 +35,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.1.x-dev"
"dev-master": "1.2.x-dev"
} }
}, },
"autoload": { "autoload": {
@ -68,25 +68,25 @@
"issues": "https://github.com/cebe/markdown/issues", "issues": "https://github.com/cebe/markdown/issues",
"source": "https://github.com/cebe/markdown" "source": "https://github.com/cebe/markdown"
}, },
"time": "2017-07-16T21:13:23+00:00"
"time": "2018-03-26T11:24:36+00:00"
}, },
{ {
"name": "dg/twitter-php", "name": "dg/twitter-php",
"version": "v3.6",
"version": "v3.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/dg/twitter-php.git", "url": "https://github.com/dg/twitter-php.git",
"reference": "dd872ad12121ff919b358989e61f7f08ba6cc7a8"
"reference": "d9370c9759138200a77ca86abcb0c5ddfe857c68"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/dg/twitter-php/zipball/dd872ad12121ff919b358989e61f7f08ba6cc7a8",
"reference": "dd872ad12121ff919b358989e61f7f08ba6cc7a8",
"url": "https://api.github.com/repos/dg/twitter-php/zipball/d9370c9759138200a77ca86abcb0c5ddfe857c68",
"reference": "d9370c9759138200a77ca86abcb0c5ddfe857c68",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"ext-curl": "*", "ext-curl": "*",
"php": ">=5.2.0"
"php": ">=5.4.0"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@ -111,10 +111,9 @@
"twitter" "twitter"
], ],
"support": { "support": {
"issues": "https://github.com/dg/twitter-php/issues",
"source": "https://github.com/dg/twitter-php/tree/v3.6"
"source": "https://github.com/dg/twitter-php/tree/v3.8"
}, },
"time": "2016-08-15T16:46:22+00:00"
"time": "2019-02-08T16:20:01+00:00"
}, },
{ {
"name": "ezyang/htmlpurifier", "name": "ezyang/htmlpurifier",

Loading…
Cancel
Save