-
-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (55 loc) · 1.57 KB
/
ci.yml
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
name: CI
on:
push:
pull_request:
schedule:
- cron: '0 0 1,16 * *'
env:
LANG: en_US.UTF-8 # (required form \NumberFormatter)
jobs:
tests:
name: PHP ${{ matrix.php }} - ${{ matrix.deps }}
runs-on: ubuntu-latest
strategy:
matrix:
php: [8.1, 8.2, 8.3, 8.4]
deps: [highest]
include:
- php: 8.1
deps: lowest
steps:
- uses: zenstruck/.github@php-test-symfony
with:
php: ${{ matrix.php }}
deps: ${{ matrix.deps }}
code-coverage:
name: Code Coverage
runs-on: ubuntu-latest
steps:
- uses: zenstruck/.github@php-coverage-codecov
with:
php: 8.1
composer-validate:
uses: zenstruck/.github/.github/workflows/php-composer-validate.yml@main
sca:
uses: zenstruck/.github/.github/workflows/php-stan.yml@main
fixcs:
name: Run php-cs-fixer
needs: sync-with-template
if: (github.event_name == 'push' || github.event_name == 'schedule') && !startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- uses: zenstruck/.github@php-cs-fixer
with:
php: 8
key: ${{ secrets.GPG_PRIVATE_KEY }}
token: ${{ secrets.COMPOSER_TOKEN }}
sync-with-template:
name: Sync meta files
if: (github.event_name == 'push' || github.event_name == 'schedule') && !startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- uses: zenstruck/.github@sync-with-template
with:
key: ${{ secrets.GPG_PRIVATE_KEY }}
token: ${{ secrets.COMPOSER_TOKEN }}