Skip to content

Commit

Permalink
feat: laravel 9 only support (#11)
Browse files Browse the repository at this point in the history
* feat: laravel 9

BREAKING CHANGE: drop support for laravel 6-8. Require PHP 8.2.

* fix: use php 8.0

* style: import classes

* chore: updater composer.lock

* style: increment style post to match styleci

---------

Co-authored-by: Audun Rundberg <audun.rundberg@nhn.no>
  • Loading branch information
audunru and audunrunhn authored Jul 18, 2023
1 parent 7ddfb63 commit 23f8704
Show file tree
Hide file tree
Showing 10 changed files with 1,746 additions and 1,346 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build Status

on:
pull_request:
branches: [master]

jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Validate Pull Request Title
uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Validate commit messages
uses: wagoid/commitlint-github-action@v5

- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: "8.0"
# Taken from https://github.com/kirschbaum-development/laravel-test-runner-container/blob/master/8.1/Dockerfile
extensions: mbstring, mysql, xml, xsl, zip, curl, bcmath, intl, bz2

- name: Install composer dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Validate PHP code
run: composer verify

- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=build/logs/clover.xml -v
6 changes: 6 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
'not_operator_with_successor_space' => true,
'ordered_imports' => true,
'phpdoc_order' => true,
'increment_style' => ['style' => 'post'],
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => null,
'import_functions' => null,
],
])
->setFinder($finder);

Expand Down
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Export JSON responses from Laravel

[![Build Status](https://app.travis-ci.com/audunru/export-response.svg?branch=master)](https://app.travis-ci.com/audunru/export-response)
[![Build Status](https://github.com/audunru/export-response/actions/workflows/validate.yml/badge.svg)](https://github.com/audunru/export-response/actions/workflows/validate.yml)
[![Coverage Status](https://coveralls.io/repos/github/audunru/export-response/badge.svg?branch=master)](https://coveralls.io/github/audunru/export-response?branch=master)
[![StyleCI](https://github.styleci.io/repos/407671897/shield?branch=master)](https://github.styleci.io/repos/407671897)

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@
],
"require": {
"php": "^8.0",
"laravel/framework": "^6.0|^7.0|^8.0|^9.0",
"laravel/framework": "^9.0",
"spatie/enum": "^3.9",
"spatie/laravel-package-tools": "^1.9",
"timacdonald/has-parameters": "^1.2"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
"orchestra/testbench": "^4.0|^5.0|^6.7|^7.0",
"orchestra/testbench": "^7.0",
"php-coveralls/php-coveralls": "^2.2",
"phpmd/phpmd": "^2.10",
"phpunit/phpunit": "^8.5|^9.0",
"phpunit/phpunit": "^9.0",
"roave/security-advisories": "dev-latest",
"spatie/array-to-xml": "^3.1",
"spatie/simple-excel": "^1.14"
"spatie/simple-excel": "^3.0"
},
"config": {
"optimize-autoloader": true,
Expand Down
Loading

0 comments on commit 23f8704

Please sign in to comment.