-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (82 loc) · 2.21 KB
/
Copy pathci.yml
File metadata and controls
87 lines (82 loc) · 2.21 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
quality:
name: Quality (PHP ${{ matrix.php }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '8.3', '8.4', '8.5' ]
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: composer:v2
- name: Install dependencies
run: composer install --no-interaction --prefer-dist
- name: Pint (code style)
run: composer pint-test
- name: PHPStan (level max)
run: composer stan
- name: Pest (unit)
run: composer test
- name: Deptrac (architecture)
run: composer deptrac
browser:
name: Browser (Pest + Playwright)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
coverage: none
tools: composer:v2
- name: Install dependencies
run: composer install --no-interaction --prefer-dist
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: npm
- name: Install Playwright
run: |
npm ci
npx playwright install --with-deps chromium
- name: Pest (browser)
run: composer test:browser
- name: Upload screenshots
if: always()
uses: actions/upload-artifact@v4
with:
name: browser-screenshots
path: tests/Browser/Screenshots
retention-days: 14
if-no-files-found: warn
docs:
name: Docs (mkdocs --strict)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: pip install mkdocs-material
- run: mkdocs build --strict
guard:
name: Pre-push safety guard
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: No sensitive tracked/staged paths
run: bash scripts/check-no-sensitive-tracked.sh