-
-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (40 loc) · 1.02 KB
/
main.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
name: CI
on:
push:
tags:
- '*'
jobs:
test:
strategy:
matrix:
php-versions: ['8.0', '8.1']
runs-on: ubuntu-latest
name: PHP ${{ matrix.php-versions }} Tests
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extension-csv: bcmath, mbstring
coverage: xdebug
- name: Check PHP Version
run: php -v
- name: Check Composer Version
run: composer -V
- name: Install Dependencies
run: composer install --prefer-dist || true
- name: Tests
run: composer phpunit
- name: Building artifacts
run: |
composer phpcs || true
composer phploc || true
composer phpcpd || true
composer phpmd || true
- name: Archive build artifacts
uses: actions/upload-artifact@v1
with:
name: build
path: build