-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (61 loc) · 2.33 KB
/
main.yml
File metadata and controls
64 lines (61 loc) · 2.33 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
59
60
61
62
63
64
on:
- push
- pull_request
- release
jobs:
analyze:
runs-on: ubuntu-latest
strategy:
matrix:
php:
- "7.4"
- "8.0"
env:
PHP_VERSION: ${{ matrix.php }}
steps:
-
uses: actions/checkout@v2
with:
submodules: recursive
- run: docker run --volume=${PWD}:/app composer install
- run: docker run --volume=${PWD}:/app composer require guzzlehttp/psr7
- run: docker-compose --file=docker/docker-compose.yml run application pipelines/analyze/phpstan
- run: docker-compose --file=docker/docker-compose.yml run application pipelines/analyze/psalm
# Fails due to some autoloading issue.
# - run: docker-compose --file=docker/docker-compose.yml run application pipelines/analyze/phan
lint:
runs-on: ubuntu-latest
strategy:
matrix:
php:
- "7.4"
- "8.0"
env:
PHP_VERSION: ${{ matrix.php }}
steps:
-
uses: actions/checkout@v2
with:
submodules: recursive
- run: docker run --volume=${PWD}:/app composer install
- run: docker run --volume=${PWD}:/app composer require guzzlehttp/psr7
- run: docker-compose --file=docker/docker-compose.yml run application pipelines/lint/code-sniffer
- run: docker-compose --file=docker/docker-compose.yml run application pipelines/lint/code-style-fixer
- run: docker-compose --file=docker/docker-compose.yml run application pipelines/lint/copy-paste-detector
test:
runs-on: ubuntu-latest
strategy:
matrix:
php:
- "7.4"
- "8.0"
env:
PHP_VERSION: ${{ matrix.php }}
steps:
-
uses: actions/checkout@v2
with:
submodules: recursive
- run: docker run --volume=${PWD}:/app composer install
- run: docker run --volume=${PWD}:/app composer require guzzlehttp/psr7
- run: docker-compose --file=docker/docker-compose.yml run application pipelines/test/phpunit