Skip to content

Commit 74bcc4f

Browse files
committed
- Added tests job
1 parent b230de7 commit 74bcc4f

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

‎.github/workflows/tests.yml‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
name: PHP ${{ matrix.php }}
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
fail-fast: true
18+
matrix:
19+
php: ["8.1", "8.2", "8.3"]
20+
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v4
24+
25+
- name: Setup PHP
26+
uses: shivammathur/setup-php@v2
27+
with:
28+
php-version: ${{ matrix.php }}
29+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
30+
coverage: none
31+
32+
- name: Install dependencies
33+
run: composer install --prefer-dist --no-interaction
34+
35+
- name: Run linting
36+
run: composer lint
37+
38+
- name: Run tests
39+
run: composer test

0 commit comments

Comments
 (0)