This repository was archived by the owner on Mar 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
59 lines (47 loc) · 1.85 KB
/
Copy pathci.yml
File metadata and controls
59 lines (47 loc) · 1.85 KB
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
name: "CI"
on:
push: ~
pull_request: ~
schedule:
- cron: "0 0 1 * *"
jobs:
backend:
runs-on: "ubuntu-20.04"
strategy:
matrix:
php-versions: ['7.4']
steps:
- uses: "actions/checkout@v2.0.0"
- name: "Cache dependencies installed with composer"
uses: "actions/cache@v1.0.3"
with:
path: "~/.composer/cache"
key: "composer-${{ matrix.php-version }}-${{ hashFiles('composer.json') }}"
restore-keys: "composer-${{ matrix.php-version }}-"
- name: "Setup PHP Action"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-versions }}"
extensions: "intl, xdebug, imagick, apcu"
- name: "Validate composer.json"
run: "composer validate --strict"
- name: "Install PHP dependencies"
run: "composer install --prefer-dist --no-interaction --optimize-autoloader --no-suggest --no-progress"
- name: "Run PHPLint"
run: "vendor/bin/phplint ./src"
- name: "Run PHPCS"
run: "vendor/bin/phpcs -d memory_limit=-1 --standard=PSR2 --extensions=php ./src"
- name: "Run PHPSpec"
run: "vendor/bin/phpspec run"
- name: "Run integration tests"
run: "vendor/bin/phpunit"
- name: "Upload PHPUnit Clover coverage file"
uses: "actions/upload-artifact@v2"
with:
name: "coverage.xml"
path: "build/clover.xml"
- name: "Upload PHPUnit JUnit coverage file"
uses: "actions/upload-artifact@v2"
with:
name: "junit.xml"
path: "build/junit.xml"