-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (50 loc) · 1.76 KB
/
Copy pathbuild.yml
File metadata and controls
64 lines (50 loc) · 1.76 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
54
55
56
57
58
59
60
61
62
63
64
name: Quality
on:
push:
branches: [master]
pull_request:
permissions:
contents: read
concurrency:
group: quality-${{ github.ref }}
cancel-in-progress: true
jobs:
frontend:
name: Build, unit tests, and audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24.18.1
cache: npm
- run: npm ci
- run: npm run check:js
# Catches a version declaration drifting on the commit that drifts it,
# rather than at the next release — or, as with package-lock.json's two
# copies, four releases later.
- run: npm run check:versions
- run: npm test
- run: npm run build
- run: npm audit --audit-level=high
- name: Generated artifacts must match the committed ones
run: git diff --exit-code
php:
name: PHP ${{ matrix.php }} syntax and Composer
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.5', '8.1']
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: composer:v2
- run: composer validate --strict --no-check-publish
- name: PHP syntax check (templates and helpers)
run: find view helper -type f \( -name '*.phtml' -o -name '*.php' \) -print0 | xargs -0 -n1 php -l
- name: Validate theme configuration
run: php -r 'if (false === parse_ini_file("config/theme.ini", true, INI_SCANNER_RAW)) { exit(1); }'