-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.14 KB
/
ci.yml
File metadata and controls
53 lines (47 loc) · 1.14 KB
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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
php-lint:
name: PHP Lint
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['8.1', '8.3']
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
- name: Lint PHP files
run: find lib/ -name '*.php' -print0 | xargs -0 -n1 php -l
frontend-build:
name: Frontend Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run build
- run: npm run lint
info-xml:
name: Validate info.xml
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install libxml2-utils
run: sudo apt-get install -y libxml2-utils
- name: Validate info.xml
run: xmllint --noout appinfo/info.xml