-
Notifications
You must be signed in to change notification settings - Fork 6
60 lines (49 loc) · 1.44 KB
/
tests.yml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Tests
on: [push]
jobs:
cs-check:
name: Check Coding Standards
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache composer
uses: actions/cache@v3
with:
path: ~/.composer/cache/
key: composer-ubuntu-${{ github.sha }}
- name: Setup
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
extensions: mbstring, fileinfo, json, intl, dom
- name: Run composer install
run: composer install -n --prefer-dist
- name: 'php-cs-fixer check'
run: 'vendor/bin/php-cs-fixer fix --dry-run --diff'
env:
PHP_CS_FIXER_IGNORE_ENV: 1
tests:
name: Run tests for PHP ${{ matrix.php-versions }}
runs-on: ubuntu-latest
strategy:
max-parallel: 15
matrix:
php-versions: ['8.0', '8.1', '8.2']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache composer
uses: actions/cache@v3
with:
path: ~/.composer/cache/
key: composer-${{ matrix.php-versions }}-${{ github.sha }}
- name: setup
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, fileinfo, json, intl, dom
- name: Run composer install
run: composer install -n --prefer-dist
- name: Run tests
run: make test