Skip to content

Commit 73412e2

Browse files
authored
Added minimal GitHub CI tests
1 parent 362ab55 commit 73412e2

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/test.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
run:
13+
runs-on: ubuntu-latest
14+
continue-on-error: false
15+
strategy:
16+
max-parallel: 3
17+
matrix:
18+
php:
19+
- 7.2
20+
- 7.3
21+
- 7.4
22+
- 8.0
23+
- 8.1
24+
composer:
25+
- 2
26+
name: Test - php:${{ matrix.php }}; composer:${{ matrix.composer }}
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@master
30+
- name: Install PHP
31+
uses: shivammathur/setup-php@master
32+
with:
33+
php-version: ${{ matrix.php }}
34+
extensions: curl, gd, pdo_mysql, json, mbstring, pcre, session
35+
ini-values: post_max_size=256M
36+
coverage: none
37+
tools: composer:v${{ matrix.composer }}
38+
- name: Composer validate
39+
run: composer validate --strict --no-check-lock
40+
- name: Install Composer dependencies (with dev)
41+
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader
42+
- name: Install Composer dependencies (without dev)
43+
run: composer install --no-progress --no-dev --no-suggest --prefer-dist --optimize-autoloader

0 commit comments

Comments
 (0)