-
Notifications
You must be signed in to change notification settings - Fork 87
38 lines (30 loc) · 1.17 KB
/
static-analysis.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
name: "static analysis"
on:
pull_request: ~
push: ~
schedule:
# Do not make it the first of the month and/or midnight since it is a very busy time
- cron: "* 10 5 * *"
jobs:
static-analysis:
name: "static analysis"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
doctrine-orm: ['2.14.*', '2.18.*', '3.0.*']
composer-flags: ['--prefer-stable']
steps:
- name: "checkout"
uses: "actions/checkout@v4"
- name: "build the environment"
run: "dev/bin/docker-compose build"
- name: "require specific Doctrine ORM version"
run: "dev/bin/php composer require --ansi ${{ matrix.composer-flags }} doctrine/orm:${{ matrix.doctrine-orm }}"
- name: "install dependencies"
run: "dev/bin/php composer update --ansi ${{ matrix.composer-flags }}"
- name: "run static analysis"
run: "dev/bin/php psalm --shepherd --stats"
- name: clear docker volumes
if: ${{ always() }}
run: dev/bin/docker-compose down --volumes