-
Notifications
You must be signed in to change notification settings - Fork 6
56 lines (44 loc) · 1.26 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
---
name: Tests and Code Analysis
on: # yamllint disable-line rule:truthy
# Trigger the workflow on pushes to the main branch and all pull requests.
push:
branches:
- "**.x"
pull_request:
jobs:
php-tests:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
php: [8.1, 8.2]
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@2.26.0
with:
php-version: ${{ matrix.php }}
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install Composer dependencies
uses: "ramsey/composer-install@v2"
- name: PHP coding standards
run: composer phpcs
- name: PHP static analysis
run: composer phpstan
- name: PHP rector
run: composer rector
- name: Test robo theme:build command.
run: composer robo theme:build
- name: Test robo config:update-php-version command.
run: composer robo config:update-php-version 8.2
yaml-lint:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: YAML lint
uses: ibiqlik/action-yamllint@v3.1
with:
config_file: .yamllint.yml