Skip to content

Commit 90eff55

Browse files
committed
feat: ci improvements
1 parent 56679da commit 90eff55

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ on: # yamllint disable-line rule:truthy
1111
- master
1212

1313
jobs:
14-
tests:
15-
name: PHP ${{ matrix.php }} - ${{ matrix.os }}
14+
integration:
15+
name: Testing on PHP ${{ matrix.php }} - ${{ matrix.os }}
1616
runs-on: ${{ matrix.os }}
1717
strategy:
1818
fail-fast: true
1919
matrix:
2020
os: ["ubuntu-22.04"]
2121
php: ["8.1"]
2222
steps:
23-
- name: Checkout code
23+
- name: Check out the codebase
2424
uses: actions/checkout@v3
2525

2626
- name: Setup PHP
@@ -32,13 +32,24 @@ jobs:
3232
tools: composer:v2
3333
coverage: none
3434

35+
- name: Load cached dependencies
36+
id: cached-composer-dependencies
37+
uses: actions/cache@v3
38+
with:
39+
path: vendor
40+
key: vendor-${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
41+
3542
- name: Install dependencies
43+
if: steps.cached-composer-dependencies.outputs.cache-hit != 'true'
3644
run: composer install
3745

38-
- name: Execute tests
46+
- name: Run coding standards task
47+
run: make cs-diff
48+
49+
- name: Execute phpunit tests
3950
run: make test
4051

41-
- name: Run phpstan
52+
- name: Run static analysis using phpstan
4253
run: make stan
4354

4455
...

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repos:
1010
- id: fix-encoding-pragma
1111

1212
- repo: https://github.com/commitizen-tools/commitizen
13-
rev: v2.27.1
13+
rev: v2.28.0
1414
hooks:
1515
- id: commitizen
1616
stages:

0 commit comments

Comments
 (0)