Skip to content

Commit 0541b4c

Browse files
authored
Merge pull request #11 from 8fold/update-composer
update: Composer and add 8.1 and 8.2
2 parents fd71a87 + d4a4de6 commit 0541b4c

3 files changed

Lines changed: 70 additions & 2 deletions

File tree

‎.github/workflows/php81.yml‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: PHP 8.1
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
16+
- name: Setup PHP Action
17+
uses: shivammathur/setup-php@2.15.0
18+
with:
19+
php-version: '8.1'
20+
21+
- name: Validate composer.json and composer.lock
22+
run: composer validate
23+
24+
- name: Install dependencies
25+
run: composer install --prefer-dist --no-progress
26+
27+
- name: Run style check
28+
run: composer run style
29+
30+
- name: Run static analyzer
31+
run: composer run stan
32+
33+
- name: Run tests
34+
run: composer run test

‎.github/workflows/php82.yml‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: PHP 8.2
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
16+
- name: Setup PHP Action
17+
uses: shivammathur/setup-php@2.15.0
18+
with:
19+
php-version: '8.2'
20+
21+
- name: Validate composer.json and composer.lock
22+
run: composer validate
23+
24+
- name: Install dependencies
25+
run: composer install --prefer-dist --no-progress
26+
27+
- name: Run style check
28+
run: composer run style
29+
30+
- name: Run static analyzer
31+
run: composer run stan
32+
33+
- name: Run tests
34+
run: composer run test

‎composer.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
"support": {
1515
},
1616
"require": {
17-
"php": "^7.3 || ^7.4 || ^8.0 || ^8.1"
17+
"php": "^7.3 || ^7.4 || ^8.0 || ^8.1 || ^8.2"
1818
},
1919
"require-dev": {
2020
"phpstan/phpstan": "^1.10",
21-
"phpunit/phpunit": "^9.5",
21+
"phpunit/phpunit": "^9.5 || ^10.0",
2222
"squizlabs/php_codesniffer": "^3.7"
2323
},
2424
"autoload": {

0 commit comments

Comments
 (0)