Skip to content

Commit 2e68160

Browse files
authored
Add GitHub Actions workflow for PHP tests
1 parent 581603f commit 2e68160

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Tests
2+
3+
on: ['push', 'pull_request']
4+
5+
jobs:
6+
ci:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v3
12+
13+
- name: Setup PHP
14+
uses: shivammathur/setup-php@v2
15+
with:
16+
php-version: 8.5
17+
tools: composer:v2
18+
coverage: xdebug
19+
extensions: bcmath, ctype, fileinfo, json, mbstring, pdo, pdo_mysql, tokenizer, xml, curl, openssl, zip, gd, intl
20+
21+
- name: Install Dependencies
22+
run: composer install --no-interaction --prefer-dist --optimize-autoloader
23+
24+
- name: Tests
25+
run: ./vendor/bin/pest --ci

0 commit comments

Comments
 (0)