Skip to content

Commit 39f874a

Browse files
authored
Update Github CI flow to run on PRs (#120)
* Update Github CI flow to run on PRs * Update Github CI flow to run on PRs
1 parent f95f7dc commit 39f874a

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

.github/workflows/php.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: Tests
22

3-
on: push
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
workflow_dispatch:
411

512
jobs:
613
build:
@@ -35,7 +42,7 @@ jobs:
3542

3643
- name: Upload coverage to Codecov
3744
if: matrix.php-version == '8.1' && matrix.operating-system == 'ubuntu-latest'
38-
uses: codecov/codecov-action@v2
45+
uses: codecov/codecov-action@v3
3946
with:
4047
token: ${{ secrets.CODECOV_TOKEN }}
4148
file: ./report/coverage.xml

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [3.0.1] - 2022-09-29
8+
9+
* `ResultContainer.offsetGet` was missing return type
10+
* Update Github CI flow to run on PRs
11+
712
## [3.0] - 2022-04-11
813

914
Breaking change - types for all arguments/return values

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,3 +204,7 @@ For Windows users:
204204
* all ` vendor/bin/phpunit`
205205
* unit tests ` vendor/bin/phpunit --testsuite 'unit-tests'`
206206
* integration tests ` vendor/bin/phpunit --testsuite 'integration-tests'`
207+
208+
# Static analysis
209+
210+
Run [PHPStan](https://phpstan.org/) analysis `compose check`

0 commit comments

Comments
 (0)