-
Notifications
You must be signed in to change notification settings - Fork 3
68 lines (49 loc) · 1.94 KB
/
tests.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
66
67
68
name: Code Check
on: [push]
jobs:
static_analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Check code style
run: make fix-cs
- name: Static code analysis with PHPStan
run: make phpstan
- name: Static code analysis with Psalm
run: make psalm
- name: Check for insecure libs
run: vendor/bin/security-checker security:check
- name: Lint Twig templates
run: bin/console lint:twig templates
- name: Lint Yaml files
run: bin/console lint:yaml config
- name: Lint container
run: bin/console lint:container
- name: Lint translations
run: bin/console lint:xliff translations
- name: Lint PHP files
run: vendor/bin/parallel-lint src
- name: Check for var_dump()s
run: vendor/bin/var-dump-check src --doctrine --symfony
unit_test:
needs: static_analysis
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8.0
steps:
- uses: actions/checkout@v1
- name: Execute PHPUnit tests
run: |
sudo service mysql start
composer install --prefer-dist --no-progress --no-suggest
bin/console doctrine:database:create
bin/console doctrine:schema:create
make phpunit
env:
APP_ENV: test
DATABASE_URL: mysql://root:[email protected]:3306/doko_app