-
Notifications
You must be signed in to change notification settings - Fork 76
73 lines (61 loc) · 1.44 KB
/
build.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
69
70
71
72
73
---
name: Build
on:
push:
branches:
- dev
- stable4
pull_request:
branches:
- dev
- stable4
workflow_dispatch:
jobs:
build:
strategy:
matrix:
php:
- '8.3'
node:
- 20
python:
- 3.11
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: true
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
- name: Setup node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install modules
run: npm install
- name: Build
run: npm run build
- name: PHP Coding Guidelines
run: composer cgl:ci
- name: PHP Lint
run: composer lint
- name: PHPStan
run: composer phpstan -- --error-format=github
- name: PHP Unit
run: composer phpunit
- name: Status
run: |-
git status
git diff
git status | grep -q "nothing to commit, working tree clean"