Skip to content

Commit

Permalink
Update Github CI flow to run on PRs (#120)
Browse files Browse the repository at this point in the history
* Update Github CI flow to run on PRs

* Update Github CI flow to run on PRs
  • Loading branch information
aldas authored Sep 29, 2022
1 parent f95f7dc commit 39f874a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: Tests

on: push
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:

jobs:
build:
Expand Down Expand Up @@ -35,7 +42,7 @@ jobs:

- name: Upload coverage to Codecov
if: matrix.php-version == '8.1' && matrix.operating-system == 'ubuntu-latest'
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./report/coverage.xml
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.0.1] - 2022-09-29

* `ResultContainer.offsetGet` was missing return type
* Update Github CI flow to run on PRs

## [3.0] - 2022-04-11

Breaking change - types for all arguments/return values
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,7 @@ For Windows users:
* all ` vendor/bin/phpunit`
* unit tests ` vendor/bin/phpunit --testsuite 'unit-tests'`
* integration tests ` vendor/bin/phpunit --testsuite 'integration-tests'`

# Static analysis

Run [PHPStan](https://phpstan.org/) analysis `compose check`

0 comments on commit 39f874a

Please sign in to comment.