Repository navigation
59 lines (53 loc) · 1.62 KB
/
Copy pathci.yml
File metadata and controls
59 lines (53 loc) · 1.62 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
php: ["7.4", "8.1", "8.3", "8.4"]
steps:
- uses: actions/checkout@v7
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
- name: PHP syntax
run: find privatus-analytics -name '*.php' -print0 | xargs -0 -n1 php -l
phpcs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- uses: shivammathur/setup-php@v2
with:
php-version: "8.3"
tools: composer:v2
coverage: none
- name: Install WordPress Coding Standards
run: |
mkdir -p "$RUNNER_TEMP/phpcs"
cd "$RUNNER_TEMP/phpcs"
composer config -g allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
composer require --dev --no-interaction --no-progress wp-coding-standards/wpcs:^3 phpcompatibility/phpcompatibility-wp:"*"
- name: PHP_CodeSniffer (WordPress-Extra, WordPress-Docs, PHP 7.4+ compatibility)
run: '"$RUNNER_TEMP/phpcs/vendor/bin/phpcs"'
zip:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- name: Build the WordPress.org zip
run: ./build-zip.sh
ws-form:
# WordPress + WS Form LITE in Docker. A headless browser sends a form and the event is checked.
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- name: WS Form tracking end to end
run: ./tests/ws-form/verify-docker.sh