-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (27 loc) · 764 Bytes
/
Copy pathci.yml
File metadata and controls
30 lines (27 loc) · 764 Bytes
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
name: CI
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
- name: Run tests
run: php tests/run.php
- name: Validate readme metadata
run: php tests/validate-readme.php
- name: PHP syntax check
run: find . -path ./.git -prune -o -path ./dist -prune -o -name '*.php' -print0 | xargs -0 -n1 php -l
- name: Build release ZIP
run: bash scripts/build-release.sh
- name: Validate release ZIP
run: python3 scripts/validate-release-zip.py