Skip to content

Commit 9bad6db

Browse files
authored
Create php.yml
1 parent d56d787 commit 9bad6db

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/php.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: PHP Pipeline
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
max-parallel: 2
12+
matrix:
13+
php-versions: ['8.2']
14+
15+
name: PHP ${{ matrix.php-versions }}
16+
17+
steps:
18+
- uses: actions/checkout@v1
19+
20+
- name: Setup PHP
21+
uses: shivammathur/setup-php@master
22+
with:
23+
php-version: ${{ matrix.php-versions }}
24+
coverage: xdebug
25+
26+
- name: Validate composer.json and composer.lock
27+
run: composer validate
28+
29+
- name: Install dependencies
30+
run: composer install --prefer-dist --no-progress --no-suggest
31+
32+
- name: Run test suite
33+
run: ./vendor/bin/pest

0 commit comments

Comments
 (0)