-
-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (24 loc) · 654 Bytes
/
test.yml
File metadata and controls
32 lines (24 loc) · 654 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ "8.5", "8.4", "8.3", "8.2", "8.1"]
steps:
- uses: actions/checkout@v5
- name: Create .env
run: touch .env
- name: Set PHP version in .env
run: |
echo "PHP_COMPOSER=${{ matrix.php-version }}" >> .env
echo "PHP_VERSION=${{ matrix.php-version }}" >> .env
- name: Install dependencies (composer update) for PHP
run: sh dock composer update
- name: Run PHPUnit tests for PHP
run: sh dock test