-
Notifications
You must be signed in to change notification settings - Fork 78
57 lines (47 loc) · 1.12 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
name: Build
on:
push:
branches:
- dev
- stable4
pull_request:
branches:
- dev
- stable4
workflow_dispatch:
jobs:
build:
strategy:
matrix:
php: ['8.2']
node: [18]
os: [ubuntu-latest, macos-11]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v3
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@v3
with:
node-version: ${{ matrix.node }}
- 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: PHP Unit
run: composer phpunit
- name: Status
run: |
git status
git status | grep -q "nothing to commit, working tree clean"