Skip to content

Commit 94bfe56

Browse files
authored
Merge pull request #3 from ByteInternet/github_actions
Run phpunit in github actions
2 parents bd9067e + 90d2365 commit 94bfe56

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/test.yaml

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

0 commit comments

Comments
 (0)