Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move CI to GH actions and allow PHP 8 #17

Merged
merged 27 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
ca1502f
Move CI to GH actions
ilario-pierbattista Jan 24, 2024
f1f1d03
fix phpunit path
ilario-pierbattista Jan 24, 2024
45bfe9c
service
ilario-pierbattista Jan 24, 2024
efb7c1c
try2
ilario-pierbattista Jan 24, 2024
11bc432
matrix
ilario-pierbattista Jan 24, 2024
dc05fa1
too early
ilario-pierbattista Jan 24, 2024
68a6e54
switch to compose wait
ilario-pierbattista Jan 24, 2024
a933d85
test symfony lock
ilario-pierbattista Jan 24, 2024
c889c80
up
ilario-pierbattista Jan 24, 2024
74afb28
coverage
ilario-pierbattista Jan 24, 2024
78ea63a
up
ilario-pierbattista Jan 24, 2024
f6c5dfe
rm scrutinizer
ilario-pierbattista Jan 24, 2024
591af8c
allow php 8
ilario-pierbattista Jan 24, 2024
a538fdd
un aggiornamento veramente euforico
ilario-pierbattista Jan 24, 2024
a8891d8
meno euforia
ilario-pierbattista Jan 24, 2024
a6ec667
Up with some updates
ilario-pierbattista Jan 24, 2024
cae6b85
esageriamo
ilario-pierbattista Jan 24, 2024
922ea39
it seems done
ilario-pierbattista Jan 25, 2024
11e3d47
blank lines at the end
ilario-pierbattista Jan 25, 2024
b34d7cd
fix matrix and always collect coverage
ilario-pierbattista Mar 9, 2024
f702527
Update CHANGELOG.md
ilario-pierbattista Mar 9, 2024
c207f6a
Update rector to ^1
ilario-pierbattista Mar 9, 2024
c22b146
upgrade gh action version
ilario-pierbattista Mar 9, 2024
6376112
use token in code coverage template
ilario-pierbattista Mar 9, 2024
0bb5f61
remove wait_for_crossbar.sh and try to optimize ci
ilario-pierbattista Mar 9, 2024
73ed942
update composer-install action
ilario-pierbattista Mar 9, 2024
5e24c23
Update .github/workflows/main.yml
ilario-pierbattista Mar 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
on:
pull_request: ~
push:
branches:
- master

jobs:
tests:
name: Test (PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }})
runs-on: ubuntu-latest
strategy:
matrix:
include:
- php: 7.4
symfony: "^4.4"
- php: 8.1
symfony: "^4.4"
- php: 8.2
symfony: "^4.4"
- php: 8.3
symfony: "^4.4"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker compose
run: docker compose up -d
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Restrict Symfony version
if: matrix.symfony
run: rm composer.lock && composer require "symfony/symfony:${{ matrix.symfony }}" --no-update
- name: Install dependencies
uses: ramsey/composer-install@v3
- name: Docker compose wait
run: docker compose up --wait crossbar
- name: Run tests
run: vendor/bin/phpunit --coverage-clover=build/coverage-report.xml
- name: Upload code coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Jean85 marked this conversation as resolved.
Show resolved Hide resolved
file: build/coverage-report.xml
ilario-pierbattista marked this conversation as resolved.
Show resolved Hide resolved
fail_ci_if_error: true
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.phpunit.result.cache
composer.phar
tests/app/cache
tests/app/logs
vendor/
var/
22 changes: 0 additions & 22 deletions .scrutinizer.yml

This file was deleted.

62 changes: 0 additions & 62 deletions .travis.yml

This file was deleted.

8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes of the CrossbarHttpPublisherBundle are documented in this file using the
[Keep a CHANGELOG](http://keepachangelog.com/) principles.

## [Unreleased]
### Added
- Support for PHP 8.
### Removed
- Support for PHP 5. Only PHP 7.4 and 8+ is tested via GH actions

## [1.0.1] - 2017-01-24

### Changed
Expand Down Expand Up @@ -40,3 +46,5 @@ All notable changes of the CrossbarHttpPublisherBundle are documented in this fi
## [0.1] - 2015-10-05

* First, belated tagged release; previously released as dev-master only

[Unreleased]: https://github.com/facile-it/crossbar-http-publisher-bundle/compare/1.0.1..master
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This bundle allows to submit PubSub events via HTTP/POST requests to a [Crossbar
* Skip SSL certificate verification (useful in dev environment)

## Requirements
* PHP >=5.6
* PHP >= 7
* Guzzle 5 or 6
* The following Symfony components (or the full-stack framework), version 2.7, 2.8, 3.x or 4.x:
* symfony/framework-bundle
Expand Down
9 changes: 6 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,19 @@
"crossbar"
],
"require": {
"php": "^5.6|^7.0",
"php": "^7.0|^8.0",
"symfony/http-kernel": "^2.7 || ^3.0 || ^4.0",
"symfony/framework-bundle": "^2.7 || ^3.0 || ^4.0",
"symfony/dependency-injection": "^2.7 || ^3.0 || ^4.0",
"symfony/config": "^2.7 || ^3.0 || ^4.0",
"guzzlehttp/guzzle": "^5.0 || ^6.0"
},
"require-dev": {
"phpunit/phpunit": "^4.5|^5",
"symfony/yaml": "^2.7 || ^3.0 || ^4.0"
"phpunit/phpunit": "^9",
"symfony/yaml": "^2.7 || ^3.0 || ^4.0",
"rector/rector": "^1",
"phpspec/prophecy": "^1.18",
"phpspec/prophecy-phpunit": "^2.1"
},
"autoload": {
"psr-4": {
Expand Down
Loading