Skip to content

Commit 5ed03f1

Browse files
committed
add github actions
1 parent 61cdcd4 commit 5ed03f1

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/run-tests.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: PHP Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
php-version: [8.2, 8.3, 8.4]
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v3
14+
15+
- name: Setup PHP ${{ matrix.php-version }}
16+
uses: shivammathur/setup-php@v2
17+
with:
18+
php-version: ${{ matrix.php-version }}
19+
extensions: mbstring, xml, zip, gd
20+
coverage: none
21+
22+
- name: Install Composer dependencies
23+
run: composer install --prefer-dist --no-progress --no-suggest
24+
25+
- name: Run PHP tests with Pest
26+
run: ./vendor/bin/pest

0 commit comments

Comments
 (0)