-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (48 loc) · 1.38 KB
/
build.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
name: Build
on:
push:
branches-ignore:
- 'dependabot/**'
pull_request: ~
release:
types: [created]
schedule:
-
cron: "0 1 * * 6" # Run at 1am every Saturday
workflow_dispatch: ~
jobs:
tests:
runs-on: ubuntu-22.04
name: "Spinbits Sylius Google Analytics 4 Events Dto's , PHP ${{ matrix.php }}"
strategy:
fail-fast: false
matrix:
php: ["7.4", "8.0", "8.1"]
steps:
-
uses: actions/checkout@v2
-
name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
extensions: intl
tools: symfony
coverage: none
-
name: Install PHP dependencies
run: composer install --no-interaction
-
name: Validate composer.json
run: composer validate --ansi --strict
-
name: Run PHPUnit
run: composer test
-
name: Run PHPStan
run: composer phpstan
-
name: Run Psalm
run: composer psalm
- name: Run Code Style
run: composer check-style