-
Notifications
You must be signed in to change notification settings - Fork 190
51 lines (43 loc) · 1.43 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
name: CI
on:
push:
pull_request:
jobs:
psalm:
runs-on: ubuntu-latest
permissions:
security-events: write
name: Static Analysis
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Psalm
uses: docker://ghcr.io/psalm/psalm-github-actions
with:
show_info: true
security_analysis: true
report_file: results.sarif
- name: Upload Analysis results to GitHub
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
phpunit:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '8.1', '8.2', '8.3', '8.4' ]
dependencies-versions: [ lowest, highest ]
name: PHPUnit test suite
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Install dependencies
uses: ramsey/composer-install@v3
with:
dependency-versions: ${{ matrix.dependencies-versions }}
- name: Run tests
run: vendor/bin/phpunit --coverage-text