Skip to content

Commit 6baf1a1

Browse files
committed
GitHub action for running unit tests
1 parent 41be6a4 commit 6baf1a1

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/.idea export-ignore
22
/.gitattributes export-ignore
3+
/.github export-ignore
34
/.gitignore export-ignore
45
/test export-ignore

.github/workflows/phpunit.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: PHPUnit
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build-test:
7+
name: PHP ${{ matrix.php-versions }} Tests
8+
runs-on: ${{ matrix.operating-system }}
9+
strategy:
10+
matrix:
11+
operating-system: ['ubuntu-latest']
12+
php-versions: ['8.3']
13+
14+
steps:
15+
- name: Setup PHP
16+
uses: shivammathur/setup-php@v2
17+
with:
18+
php-version: ${{ matrix.php-versions }}
19+
extensions: mbstring, memcache, intl
20+
ini-values: post_max_size=256M
21+
22+
- name: Check PHP version
23+
run: php -v
24+
25+
- uses: actions/checkout@v2
26+
with:
27+
fetch-depth: 0
28+
29+
- name: Composer install
30+
run: composer install
31+
32+
- name: Run tests
33+
run: ./vendor/bin/phpunit test/

0 commit comments

Comments
 (0)