Skip to content

Commit

Permalink
feat!: require php ^8.0 (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
thorbrink authored Feb 20, 2024
1 parent c5ba8b7 commit 54b5620
Show file tree
Hide file tree
Showing 17 changed files with 2,920 additions and 380 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
if: ${{ hashFiles('composer.json') != '' }}
with:
tools: composer
php-version: '7.4'
php-version: '8.2'

- name: Build PHP
if: ${{ hashFiles('composer.json') != '' }}
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test

on:
pull_request:

jobs:

test:

runs-on: ubuntu-latest

steps:

- name: Checkout
uses: actions/checkout@v3

- name: Setup PHP with composer v2
uses: shivammathur/setup-php@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
php-version: '8.3'
tools: composer:v2

- name: Install dependencies
run: composer i

- name: Run tests
run: composer run test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ Thumbs.db
*.tar
*.zip

# phpunit cache
.phpunit.result.cache

# -------------------------
# BEGIN Whitelisted Files
# -------------------------
Expand Down
15 changes: 11 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,22 @@
}
],
"require": {
"php": "^8.0",
"helsingborg-stad/acf-export-manager": ">=1.0.0",
"philo/laravel-blade": "^3.1",
"ralouphie/mimey": "^2.1",
"helsingborg-stad/blade": "^3.1",
"justinrainbow/json-schema": "^5.2"
},
"autoload": {
"psr-4": {
"EventManagerIntegration\\": "source/php/"
}
},
"version": "1.2.7"
}
"scripts": {
"test": "@php vendor/bin/phpunit"
},
"version": "2.0.0",
"require-dev": {
"lucatume/function-mocker": "^1.3",
"10up/wp_mock": "^0.5.0"
}
}
Loading

0 comments on commit 54b5620

Please sign in to comment.