-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (55 loc) · 1.75 KB
/
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
53
54
55
56
57
58
59
60
61
62
63
64
65
name: tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Run unit tests
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run tests inside docker container
uses: manticoresoftware/addnab-docker-run-action@v3
with:
image: manticoresearch/manticore-executor-kit:latest
options: -v ${{ github.workspace }}:/workdir --cap-add SYS_ADMIN --security-opt apparmor=unconfined
run: |
# the entrypoint is rewritten so we need to launch searchd manually
searchd
cd /workdir
composer install --prefer-dist
git clone https://github.com/manticoresoftware/phar_builder.git
bin/test
codestyle:
name: PHPCS validation
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run PHPCS to check following the standard
uses: manticoresoftware/addnab-docker-run-action@v3
with:
image: manticoresearch/manticore-executor-kit:latest
options: -v ${{ github.workspace }}:/workdir
run: |
cd /workdir
composer install --prefer-dist
bin/codestyle
codeanalyze:
name: PHPStan static analysis
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run PHPStan to analyze the codebase
uses: manticoresoftware/addnab-docker-run-action@v3
with:
image: manticoresearch/manticore-executor-kit:latest
options: -v ${{ github.workspace }}:/workdir
run: |
cd /workdir
composer install --prefer-dist
bin/codeanalyze