Skip to content

Commit 9905b24

Browse files
committed
✅ add auto test
1 parent 8844bf2 commit 9905b24

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/test.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Pest Tests
2+
3+
on: [push, pull_request]
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
pest_tests:
10+
runs-on: ${{ matrix.operating-systems }}
11+
12+
strategy:
13+
matrix:
14+
operating-systems: [ubuntu-latest]
15+
php-versions: ['8.1', '8.2', '8.3']
16+
17+
name: PHP ${{ matrix.php-versions }} test on ${{ matrix.operating-systems }}
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Setup PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: ${{ matrix.php-versions }}
27+
ini-values: error_reporting=E_ALL
28+
tools: composer:v2
29+
30+
- name: Running Composer Install
31+
run: composer install
32+
33+
- name: Running Pest Test
34+
run: composer test

0 commit comments

Comments
 (0)