-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 1.01 KB
/
backend-ci.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
name: Backend-CI
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '7.4' ]
include:
- php: '7.4'
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Set up PHP version ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2, php-cs-fixer
- name: Environment Check
run: |
php --version
composer --version
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: |
composer install
- name: Info
run: composer info
- name: CGL
run: php-cs-fixer fix --verbose --config ./Build/.php-cs-fixer.php --dry-run
- name: Unit Tests
run: ./etc/scripts/runTests.sh -s unit
- name: Functional Tests
run: ./etc/scripts/runTests.sh -s unit