Skip to content

Commit 0c61aa0

Browse files
committed
Bump minimum PHP version and add tests.
1 parent 5adc8ab commit 0c61aa0

File tree

6 files changed

+3853
-35
lines changed

6 files changed

+3853
-35
lines changed

.github/workflows/tests.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
php: ['8.1', '8.2', '8.3', '8.4', '8.5']
17+
18+
name: PHP ${{ matrix.php }}
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v4
23+
24+
- name: Setup PHP
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php }}
28+
extensions: json, curl
29+
coverage: none
30+
31+
- name: Install dependencies
32+
run: composer install --prefer-dist --no-interaction --no-progress
33+
34+
- name: Run tests
35+
run: composer test

composer.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,30 @@
88
],
99
"license": "MIT",
1010
"require": {
11-
"php": "^8.0",
11+
"php": "^8.1",
1212
"joetannenbaum/alfred-workflow": "dev-master",
1313
"guzzlehttp/guzzle": "^7.9"
1414
},
15+
"require-dev": {
16+
"pestphp/pest": "^2.0"
17+
},
18+
"autoload": {
19+
"classmap": ["CoolifyClient.php"]
20+
},
1521
"minimum-stability": "stable",
1622
"prefer-stable": true,
1723
"repositories": [
1824
{
1925
"type": "vcs",
2026
"url": "https://github.com/mattstein/alfred-workflow"
2127
}
22-
]
28+
],
29+
"config": {
30+
"allow-plugins": {
31+
"pestphp/pest-plugin": true
32+
}
33+
},
34+
"scripts": {
35+
"test": "pest"
36+
}
2337
}

0 commit comments

Comments
 (0)