-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (39 loc) · 1.19 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
name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
SSH_AUTH_SOCK: '/ssh-agent'
jobs:
ci:
name: Check Coding Standards
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
extensions: mbstring, fileinfo, json, intl, dom
tools: castor
- name: Build and start the infrastructure
run: castor start
- name: Install quality tools
run: castor qa:install
- name: Check coding standards
run: castor qa:cs --dry-run
- name: Lint Twig files
run: castor qa:twig-lint
- name: Lint YAML files
run: castor qa:yaml-lint
- name: Run PHPStan
run: castor qa:phpstan
- name: Load fixtures
run: castor app:db:fixtures
- name: Run the tests
run: castor tests