Skip to content
This repository was archived by the owner on Sep 1, 2024. It is now read-only.

Commit 877f840

Browse files
committed
Run quality checks on PRs and pushes
1 parent f9e6c82 commit 877f840

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

.github/workflows/quality-checks.yaml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Quality Checks
2+
3+
on:
4+
workflow_dispatch: {}
5+
6+
pull_request: {}
7+
push:
8+
branches:
9+
- main
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
phpcs:
17+
name: CodeSniffer
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 10
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: 8.3
26+
coverage: none
27+
28+
- uses: ramsey/composer-install@v2
29+
30+
- name: Run PHP CodeSniffer
31+
run: composer run phpcs
32+
33+
stan:
34+
name: PHP Stan
35+
runs-on: ubuntu-latest
36+
timeout-minutes: 10
37+
38+
steps:
39+
- uses: actions/checkout@v2
40+
- uses: shivammathur/setup-php@v2
41+
with:
42+
php-version: 7.4
43+
coverage: none
44+
45+
- uses: ramsey/composer-install@v2
46+
47+
- name: Run PHP Stan
48+
run: composer run phpstan
49+
50+
tests:
51+
name: Tests
52+
runs-on: ubuntu-latest
53+
timeout-minutes: 10
54+
55+
steps:
56+
- uses: actions/checkout@v2
57+
- uses: shivammathur/setup-php@v2
58+
with:
59+
php-version: 7.4
60+
coverage: none
61+
62+
- uses: ramsey/composer-install@v2
63+
64+
- name: Run PHPUnit
65+
run: composer run tests

0 commit comments

Comments
 (0)