-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (40 loc) · 1.24 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
47
48
49
50
51
52
name: Backend-CI
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '7.4', '8.1' ]
include:
- php: '7.4'
steps:
- name: Checkout Code
uses: actions/checkout@v3
- 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
uses: ramsey/composer-install@v2
env:
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}
COMPOSER_POOL_OPTIMIZER: 0
- name: Info
run: composer info
- name: Check coding standards
run: ./etc/scripts/checkCodingStandards.sh
- name: Lint yaml
run: ./.Build/bin/yaml-lint Configuration --parse-tags
- name: Run unit tests
run: ./etc/scripts/runTests.sh -s unit -p ${{ matrix.php }}
- name: Run acceptance tests
run: ./etc/scripts/runTests.sh -s acceptance -p ${{ matrix.php }}