Skip to content

Commit

Permalink
Upgrade PHP dependencies and move to GH Actions for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
samwilson committed May 30, 2024
1 parent 82188a1 commit ad5371e
Show file tree
Hide file tree
Showing 4 changed files with 1,829 additions and 897 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: composer
directory: "/"
schedule:
interval: daily
time: "21:00"
open-pull-requests-limit: 10
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on: [push, pull_request]

jobs:
build:

strategy:
matrix:
os: [ ubuntu-latest ]
php: [ '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
include:
- os: macos-latest
php: '8.3'
- os: windows-latest
php: '8.3'

runs-on: ${{matrix.os}}

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{matrix.php}}
extensions: fileinfo, json, pdo, mbstring

- name: Install
run: |
composer install
- name: Test
run: |
composer test
19 changes: 16 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
},
"require": {
"krinkle/intuition": "^2.1",
"samwilson/phpflickr": "^4.7",
"symfony/console": "^4.2|^5.0",
"samwilson/phpflickr": "^5",
"symfony/console": "^4.2|^5|^6|^7",
"symfony/yaml": "^4.2|^5.0",
"symfony/filesystem": "^4.2|^5.0",
"twig/twig": "^3.0",
Expand All @@ -27,6 +27,19 @@
"mediawiki/minus-x": "^1.0",
"phpunit/phpunit": "^7.0|^8.0",
"symfony/var-dumper": "^5.0",
"opsway/psr12-strict-coding-standard": "^0.3.0"
"opsway/psr12-strict-coding-standard": "^1"
},
"scripts": {
"test": [
"composer validate",
"minus-x check . -q",
"phpcs -sp",
"git status | grep 'nothing to commit, working tree clean'"
]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
Loading

0 comments on commit ad5371e

Please sign in to comment.