Skip to content

switch to php 8 #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 31, 2024
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
53 changes: 53 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
pull_request:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions:
contents: "read"

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# composer validation
composer:
name: "composer config validation"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- name: "Validate composer.json"
run: "composer validate --strict"
# PHP lint and PHPStan for different PHP versions
php:
runs-on: "ubuntu-latest"
strategy:
matrix:
php-version:
- "8.1"
- "8.2"
- "8.3"
name: "PHP ${{ matrix.php-version }}"
steps:
- name: "git checkout"
uses: "actions/checkout@v3"
- name: "setup PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
coverage: "xdebug"
- name: "check PHP version"
run: "php -v"
- name: "lint PHP files"
run: "php -l src/"
# - name: "install composer dependencies"
# run: "composer install --prefer-dist --no-progress"
# # PHPStan
# - name: "PHPStan static analysis"
# uses: "php-actions/phpstan@v3"
# with:
# php_version: "${{ matrix.php-version }}"
# configuration: "phpstan.neon"
# path: "exceptions/ src/ tests/"
57 changes: 0 additions & 57 deletions .github/workflows/php.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
vendor/
.uuid
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"homepage": "https://php-sap.github.io/",
"minimum-stability": "stable",
"require": {
"php": ">=7.4",
"php": "^8.1",
"ext-json": "*",
"phpunit/phpunit": "^9.6",
"kba-team/memory-container": "^2.0",
"php-sap/interfaces": "^4.0",
"php-sap/common": "^5.0"
"php-sap/interfaces": "dev-main",
"php-sap/common": "dev-main"
},
"autoload": {
"psr-4": {
Expand Down
Loading
Loading