Skip to content

Commit 6f75779

Browse files
committed
feat: add GitHub Action to psalm
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 11f00af commit 6f75779

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/psalm.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Static analysis
2+
3+
on: pull_request
4+
5+
concurrency:
6+
group: psalm-${{ github.head_ref || github.run_id }}
7+
cancel-in-progress: true
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
static-analysis:
14+
runs-on: ubuntu-latest
15+
16+
name: static-psalm-analysis
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
20+
with:
21+
persist-credentials: false
22+
23+
- name: Set up php8.1
24+
uses: shivammathur/setup-php@ccf2c627fe61b1b4d924adfcbd19d661a18133a0 # v2.35.2
25+
with:
26+
php-version: 8.1
27+
extensions: json, openssl
28+
coverage: none
29+
ini-file: development
30+
# Temporary workaround for missing pcntl_* in PHP 8.3
31+
ini-values: disable_functions=
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
35+
- name: Install dependencies
36+
run: composer i
37+
38+
- name: Run coding standards check
39+
run: composer run psalm -- --output-format=github

0 commit comments

Comments
 (0)