Skip to content

Commit 27681cf

Browse files
committed
Run phpunit in github actions
1 parent bd9067e commit 27681cf

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/test.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Run tests for PR
2+
on:
3+
pull_request:
4+
5+
jobs:
6+
code_quality:
7+
strategy:
8+
matrix:
9+
php_version: [7.4, 8.0, 8.1]
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout hypernode-deploy
13+
uses: actions/checkout@v3
14+
- name: Install PHP
15+
uses: shivammathur/setup-php@2.21.1
16+
with:
17+
php-version: ${{ matrix.php_version }}
18+
tools: composer:v2
19+
- name: Install dependencies
20+
run: composer update --prefer-dist --no-progress --no-suggest
21+
- name: Run PHP unit
22+
run: php vendor/bin/phpunit tests/unit

0 commit comments

Comments
 (0)