-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 993 Bytes
/
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
name: CI
on:
push: ~
workflow_dispatch: ~
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php: [8.2, 8.3]
steps:
- # Copies the repository files to the Action Runner
name: Checkout Repository
uses: actions/checkout@v3
- # Installs PHP and other necessary tools
name: Setup PHP
uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php }}
- # Installs and caches PHP dependencies
name: Install Dependencies
uses: ramsey/[email protected]
- # Validates composer.json structure and required fields
name: Validate composer.json
run: composer validate --ansi --strict --no-check-publish
- # Runs code quality tools, like phpstan etc.
name: Run Code Quality Tools
run: composer analyse
- # Runs unit and integration tests, like phpspec, phpunit etc.
name: Run Tests
run: composer test