Skip to content

Commit 5d00fc4

Browse files
jessevzjessevz
andauthored
Test pipeline (#1884)
* Use Phpstan as static code anlyser in github actions --------- Co-authored-by: jessevz <jesse.van.zutphen@nfi.nl>
1 parent 1c13a80 commit 5d00fc4

File tree

70 files changed

+371
-272
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+371
-272
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- db_system: postgres
2121
steps:
2222
- name: Checkout repository
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v6
2424
- name: Start Hashtopolis server
2525
uses: ./.github/actions/start-hashtopolis
2626
with:

.github/workflows/docs-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
steps:
1212
- name: Check out the repository
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v6
1414
with:
1515
fetch-depth: 0
1616
- name: Set up Python

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
steps:
1212
- name: Check out the repository
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v6
1414
with:
1515
fetch-depth: 0
1616
- name: Set up Python

.github/workflows/phpstan.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: PHPStan
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- dev
8+
pull_request:
9+
branches:
10+
- master
11+
- dev
12+
13+
jobs:
14+
phpstan:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v6
20+
21+
- name: Set up PHP
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: '8.5'
25+
tools: composer
26+
coverage: none
27+
28+
- name: Install dependencies
29+
run: composer install --no-interaction --no-progress --prefer-dist
30+
31+
- name: Run PHPStan
32+
run: vendor/bin/phpstan analyse

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@
3232
"tuupola/slim-basic-auth": "^3.3"
3333
},
3434
"require-dev": {
35-
"jangregor/phpstan-prophecy": "^1.0.0",
3635
"phpspec/prophecy-phpunit": "^2.0",
3736
"phpstan/extension-installer": "^1.1.0",
38-
"phpstan/phpstan": "^1.8",
37+
"phpstan/phpstan": "^2.1",
3938
"phpunit/phpunit": "^9.5.25",
4039
"squizlabs/php_codesniffer": "^3.7"
4140
},

0 commit comments

Comments
 (0)