-
Notifications
You must be signed in to change notification settings - Fork 14
56 lines (42 loc) · 1.28 KB
/
php.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
name: PHP tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
matrix:
php-versions: ['8.2']
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
# https://github.com/marketplace/actions/setup-php-action
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl
ini-values: post_max_size=256M, max_execution_time=180
tools: composer
- uses: actions/checkout@v2
- name: Check PHP version
run: php -v
- name: Install dependencies
run: composer install --prefer-dist
- name: Code lint PHP files
run: ./vendor/bin/phplint
- name: Coding standards
run: ./vendor/bin/phpcs
# - name: PHPUnit
# run: ./vendor/phpunit/phpunit/phpunit
# env:
# CRAFTCMS_API_READ_TOKEN: ${{ secrets.CRAFTCMS_API_READ_TOKEN }}
# CRAFTCMS_API_PUBLISH_TOKEN: ${{ secrets.CRAFTCMS_API_PUBLISH_TOKEN }}
# CACHE_ENABLE: 0
- name: Redirects
run: php ./tests/urls/test-urls.php
- name: Symfony lint service container
run: php ./bin/console lint:container