-
-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (32 loc) · 1.29 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
39
40
41
42
name: 🔎 Static Analysis
on:
pull_request:
branches: [ "master" ]
jobs:
psalm:
name: Run Analysis
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Composer Dependencies
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Run Psalm
id: analysis
run: vendor/bin/psalm > psalmout.txt || exit 0
- name: Print Psalm output
run: cat psalmout.txt
# Send the reports to the CI server to calculate type coverage and send back commit status checks
- name: Ping CI server with type coverage results
if: github.event.repository.full_name == 'hydephp/develop'
run: php monorepo/scripts/ping-ci-server-with-type-coverage.php ${{ secrets.CI_SERVER_TOKEN }} ${{ github.event.pull_request.head.sha }} ${{ github.head_ref }} ${{ github.run_id }}
type-coverage:
name: Check Type Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Composer Dependencies
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Run Pest Type Coverage
run: ./vendor/bin/pest --type-coverage