Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Commit

Permalink
Support Laravel 10 (#16)
Browse files Browse the repository at this point in the history
- Added support for Laravel 10.
- Added support for PHP 8.2.
- Removed support for Laravel 8.
- Removed support for Laravel 9.
- Removed support for PHP 8.0.
  • Loading branch information
tspencer244 authored Sep 12, 2023
1 parent 8a7969e commit fee3a4b
Show file tree
Hide file tree
Showing 12 changed files with 222 additions and 213 deletions.
49 changes: 26 additions & 23 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,51 @@
version: 2.1

executors:
php80:
docker:
- image: cimg/php:8.0
php81:
docker:
- image: cimg/php:8.1
php82:
docker:
- image: cimg/php:8.2

jobs:
lint:
executor: php82
steps:
- checkout
- run: composer update
- run: composer lint
test:
parameters:
php-executor:
php_executor:
type: string
executor: << parameters.php-executor >>
executor: << parameters.php_executor >>
steps:
- checkout
- run: printf "\n" | sudo pecl install apcu redis
- run: echo 'apc.enable_cli=1' | sudo tee -a /etc/php.d/circleci.ini
- restore_cache:
keys:
- v1-<< parameters.php-executor >>-dependencies-lowest-{{ checksum "composer.json" }}
- v1-<< parameters.php-executor >>-dependencies-lowest-
- run: composer update --prefer-lowest
- save_cache:
key: v1-<< parameters.php-executor >>-dependencies-lowest-{{ checksum "composer.json" }}
paths:
- ./vendor
- run: composer test
- restore_cache:
keys:
- v1-<< parameters.php-executor >>-dependencies-highest-{{ checksum "composer.json" }}
- v1-<< parameters.php-executor >>-dependencies-highest-
- run: composer update
- save_cache:
key: v1-<< parameters.php-executor >>-dependencies-highest-{{ checksum "composer.json" }}
paths:
- ./vendor
- run: composer test
coverage:
executor: php82
steps:
- run: printf "\n" | sudo pecl install apcu redis
- run: echo 'apc.enable_cli=1' | sudo tee -a /etc/php.d/circleci.ini
- run: sudo -E pecl install pcov && sudo -E docker-php-ext-enable pcov
- checkout
- run: composer update
- run: composer coverage

workflows:
all-tests:
lint_test_coverage:
jobs:
- lint
- test:
matrix:
parameters:
php-executor: [php80, php81]
php_executor: [php81, php82]
- coverage:
requires:
- test
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true

[*]
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.yml]
indent_size = 2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.idea
.php-cs-fixer.cache
.phpunit.cache
composer.lock
phpunit.xml
Expand Down
9 changes: 9 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

return (new PhpCsFixer\Config())
->setRules(['@PSR12' => true])
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('vendor')
);
76 changes: 0 additions & 76 deletions .styleci.yml

This file was deleted.

97 changes: 97 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# Changelog

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.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v4.0.0] - 2023-09-11

### Added

- Added support for Laravel 10.
- Added support for PHP 8.2.

### Removed

- Removed support for Laravel 8.
- Removed support for Laravel 9.
- Removed support for PHP 8.0.

## [v3.0.0] - 2023-02-10

### Added

- Add support for Laravel 9.
- Add support for PHP 8.1.

### Changed

- Swap build provider from Travis CI to Circle CI.

### Removed

- Drop support for PHP 7.4.
- Drop support for Laravel 7.
- Remove `orchestra/testbench` from development dependencies.

## [v2.0.1] - 2022-02-10

## [v2.0.0] - 2022-02-10

## [v2.0.0-BETA1] - 2022-02-10

## [v2.0] - 2022-02-10

## [v1.0.6] - 2022-01-12

## [v1.0.5] - 2020-03-16

### Changed

- Update call to array_get helper to use the Illuminate\Support\Arr class
- Enable Laravel 7 compatability

## [v1.0.4] - 2019-10-17

### Changed

- Enable Laravel 6.0 compatability

## [v1.0.3] - 2019-02-11

### Changed

- Enable package discovery for laravel 5.5+

## [v1.0.2] - 2019-01-16

### Added

- Add compatability with Laravel Lumen (make named route configurable)

## [v1.0.1] - 2017-08-30

### Fixed

- Fix config retrieval of `prometheus.storage_adapters`

## [v1.0.0] - 2017-07-27

### Added

- Initial release

[v4.0.0]: https://github.com/HealthEngineAU/laravel-prometheus-exporter/compare/v3.0.0...v4.0.0
[v3.0.0]: https://github.com/HealthEngineAU/laravel-prometheus-exporter/compare/v2.0.1...v3.0.0
[v2.0.1]: https://github.com/HealthEngineAU/laravel-prometheus-exporter/compare/v2.0.0...v2.0.1
[v2.0.0]: https://github.com/HealthEngineAU/laravel-prometheus-exporter/compare/v2.0.0-BETA1...v2.0.0
[v2.0.0-BETA1]: https://github.com/HealthEngineAU/laravel-prometheus-exporter/compare/v2.0...v2.0.0-BETA1
[v2.0]: https://github.com/HealthEngineAU/laravel-prometheus-exporter/compare/1.0.6...v2.0
[v1.0.6]: https://github.com/HealthEngineAU/laravel-prometheus-exporter/compare/1.0.5...1.0.6
[v1.0.5]: https://github.com/HealthEngineAU/laravel-prometheus-exporter/compare/1.0.4...1.0.5
[v1.0.4]: https://github.com/HealthEngineAU/laravel-prometheus-exporter/compare/1.0.3...1.0.4
[v1.0.3]: https://github.com/HealthEngineAU/laravel-prometheus-exporter/compare/1.0.2...1.0.3
[v1.0.2]: https://github.com/HealthEngineAU/laravel-prometheus-exporter/compare/1.0.1...1.0.2
[v1.0.1]: https://github.com/HealthEngineAU/laravel-prometheus-exporter/compare/1.0.0...1.0.1
[v1.0.0]: https://github.com/HealthEngineAU/laravel-prometheus-exporter/releases/tag/1.0.0
37 changes: 0 additions & 37 deletions changelog.md

This file was deleted.

Loading

0 comments on commit fee3a4b

Please sign in to comment.