Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: '/'
schedule:
interval: weekly
pull-request-branch-name:
separator: '-'
- package-ecosystem: composer
directory: '/'
versioning-strategy: widen
schedule:
interval: weekly
pull-request-branch-name:
separator: '-'
12 changes: 0 additions & 12 deletions .github/dependabot.yml

This file was deleted.

74 changes: 74 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: test
on:
pull_request: ~
push:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest
name: test
strategy:
matrix:
install-args: ['']
php-version: ['8.1', '8.2', '8.3', '8.4']
fail-fast: false
steps:
# Cancel previous runs of the same branch
- name: cancel
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}

- name: checkout
uses: actions/checkout@v5

- name: php
uses: shivammathur/setup-php@2.35.5
with:
php-version: ${{ matrix.php-version }}
ini-values: zend.assertions=1

- name: composer-cache-dir
id: composercache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: composer-cache
uses: actions/cache@v4.2.4
with:
path: ${{ steps.composercache.outputs.dir }}
key: composer-${{ hashFiles('**/composer.json') }}-${{ matrix.install-args }}
restore-keys: |
composer-${{ hashFiles('**/composer.json') }}-${{ matrix.install-args }}
composer-${{ hashFiles('**/composer.json') }}-
composer-

- name: composer
run: |
composer update ${{ matrix.install-args }} --no-interaction --no-progress --prefer-dist

- name: phpcs
run: |
vendor/bin/phpcs --no-cache

- name: phpunit
run: |
vendor/bin/phpunit --no-coverage

- name: phpstan-cache
uses: actions/cache@v4.2.4
with:
key: phpstan-${{ matrix.php-version }}-${{ matrix.install-args }}-${{ github.ref }}-${{ github.sha }}
path: .phpstan-cache
restore-keys: |
phpstan-${{ matrix.php-version }}-${{ matrix.install-args }}-${{ github.ref }}-
phpstan-${{ matrix.php-version }}-${{ matrix.install-args }}-
phpstan-${{ matrix.php-version }}-
phpstan-

- name: phpstan
run: |
mkdir -p .phpstan-cache
vendor/bin/phpstan analyse --no-progress --no-interaction --memory-limit=1G
44 changes: 0 additions & 44 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
"require" : {
"php" : ">=8.1",
"thecodingmachine/graphqlite" : "^7.0 || ^8.0",
"symfony/validator": "^6.4 || ^7"
"symfony/validator": "^6.4 || ^7.0 || ^8.0"
},
"require-dev": {
"phpunit/phpunit": "^11",
"phpunit/phpunit": "^10",
"mouf/picotainer": "^1.1",
"phpstan/phpstan": "^2",
"php-coveralls/php-coveralls": "^2.1.0",
"symfony/translation": "^7",
"symfony/translation": "^6.4 || ^7.0 || ^8.0",
"doctrine/coding-standard": "^12"
},
"scripts": {
Expand Down
Loading