Skip to content

Commit 597c786

Browse files
author
Artem Stepin
committed
merged github actions
1 parent 19cd5bf commit 597c786

File tree

3 files changed

+68
-70
lines changed

3 files changed

+68
-70
lines changed

.github/workflows/ci.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
psalm:
11+
name: Psalm
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
- name: Psalm
17+
uses: docker://vimeo/psalm-github-actions
18+
with:
19+
security_analysis: true
20+
report_file: results.sarif
21+
- name: Upload Security Analysis results to GitHub
22+
uses: github/codeql-action/upload-sarif@v1
23+
with:
24+
sarif_file: results.sarif
25+
phpstan:
26+
name: PHPStan
27+
28+
runs-on: ubuntu-latest
29+
30+
steps:
31+
- uses: actions/checkout@v2
32+
- uses: php-actions/composer@v5
33+
with:
34+
php_version: 7.4
35+
36+
- name: PHPStan Static Analysis
37+
uses: php-actions/phpstan@v3
38+
with:
39+
path: src/
40+
php_version: 7.4
41+
42+
build-test:
43+
runs-on: ubuntu-latest
44+
strategy:
45+
matrix:
46+
php-versions: ['7.4', '8.0']
47+
composer-args: ['--prefer-stable', '--prefer-lowest', '']
48+
composer-command: ['install', 'update']
49+
exclude:
50+
- composer-args: '--prefer-stable'
51+
composer-command: 'install'
52+
- composer-args: '--prefer-lowest'
53+
composer-command: 'install'
54+
- composer-args: ''
55+
composer-command: 'update'
56+
57+
steps:
58+
- uses: actions/checkout@v2
59+
- uses: php-actions/composer@v5
60+
with:
61+
php_version: ${{ matrix.php-versions }}
62+
command: ${{ matrix.composer-command }}
63+
args: ${{ matrix.composer-args }}
64+
- name: PHPUnit tests
65+
uses: php-actions/phpunit@v3
66+
with:
67+
configuration: phpunit.xml
68+
php_version: ${{ matrix.php-versions }}

.github/workflows/quality.yml

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

.github/workflows/tests.yml

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

0 commit comments

Comments
 (0)