Skip to content

Commit 96a6a10

Browse files
committed
move CI configuration into one file and add the static analysis there
1 parent 27146b1 commit 96a6a10

File tree

2 files changed

+24
-32
lines changed

2 files changed

+24
-32
lines changed
Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,34 @@
1-
name: tests
1+
name: ci
22

33
on:
44
push:
55
pull_request:
66

77
jobs:
8-
tests:
8+
static_analysis:
9+
name: Static analysis
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
915

16+
- name: Setup PHP
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: '8.0'
20+
extensions: curl
21+
tools: composer:v2
22+
coverage: none
23+
24+
- name: Install PHP dependencies
25+
run: composer update --prefer-dist --no-interaction --no-progress
26+
27+
- name: Run PHPStan
28+
run: vendor/bin/phpstan analyze
29+
30+
tests:
31+
name: Tests ${{ matrix.php }}
1032
runs-on: ubuntu-latest
1133
strategy:
1234
matrix:
@@ -18,8 +40,6 @@ jobs:
1840
- '8.3'
1941
- '8.4'
2042

21-
name: PHP ${{ matrix.php }}
22-
2343
steps:
2444
- name: Checkout code
2545
uses: actions/checkout@v2

.github/workflows/static-analysis.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)