Skip to content

Commit

Permalink
Update dependencies and code
Browse files Browse the repository at this point in the history
  • Loading branch information
whikloj committed Jun 6, 2023
1 parent 37516e0 commit ae3c103
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 1,826 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,38 @@ name: Build

on:
push:
branches: [ main ]
branches: [ main, '*' ]
pull_request:
branches: [ main ]
schedule:
- cron: '0 0 1 */6 *' # Run at midnight on the first day every 6 months.

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ["7.2", "7.3", "7.4"]
php-versions: ["8.1", "8.2"]

name: PHP ${{ matrix.php-versions }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug
coverage: pcov
tools: phpunit

- name: Get composer cache directory
id: composercache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.composercache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand All @@ -43,7 +46,7 @@ jobs:
run: composer test

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
file: ./clover.xml
fail_ci_if_error: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
vendor/
clover.xml
.phpunit.result.cache
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"type": "library",
"license": "MIT",
"require": {
"easyrdf/easyrdf": "^0.10-dev",
"easyrdf/easyrdf": "^1.1.1",
"ml/json-ld": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^6.5",
"phpunit/phpunit": "^10.2",
"squizlabs/php_codesniffer": "^3.2"
},
"autoload": {
Expand Down
Loading

0 comments on commit ae3c103

Please sign in to comment.