Skip to content

Commit 90b4e3c

Browse files
authored
Create run-tests.yml
1 parent 9e95376 commit 90b4e3c

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/run-tests.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Unit Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- "*"
10+
schedule:
11+
- cron: '0 0 * * *'
12+
13+
jobs:
14+
php-tests:
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 15
17+
env:
18+
COMPOSER_NO_INTERACTION: 1
19+
20+
strategy:
21+
matrix:
22+
php: [8.1, 8.0, 7.4]
23+
dependency-version: [prefer-stable]
24+
25+
name: P${{ matrix.php }} - ${{ matrix.dependency-version }}
26+
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v2
30+
31+
- name: Setup PHP
32+
uses: shivammathur/setup-php@v2
33+
with:
34+
php-version: ${{ matrix.php }}
35+
coverage: none
36+
tools: composer:v2
37+
38+
- name: Install dependencies
39+
run: |
40+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress
41+
- name: Execute Unit Tests
42+
run: composer test

0 commit comments

Comments
 (0)