Skip to content

Commit

Permalink
1.3.0 (#43)
Browse files Browse the repository at this point in the history
* Tests have been migrated from Travis to Github actions.
* Added PHP7.4 support.
* Added Laravel 7 support.
* Dropped Laravel support before 5.8 version.
* Dropped PHP support before 7.2 version.
* Reworked documentation.
  • Loading branch information
Okipa authored Apr 25, 2020
1 parent 72c69bd commit 1f63c86
Show file tree
Hide file tree
Showing 20 changed files with 584 additions and 430 deletions.
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
; This file is for unifying the coding style for different editors and IDEs.
; More information at http://editorconfig.org

root = true

[*]
charset = utf-8
indent_size = 4
indent_style = space
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2
14 changes: 14 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Path-based git attributes
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html

# Ignore all test and documentation with "export-ignore".
/.github export-ignore
/tests export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.scrutinizer.yml export-ignore
/phpcs.xml export-ignore
/phpmd.xml export-ignore
/phpstan.neon.dist export-ignore
/phpunit.xml.dist export-ignore
76 changes: 76 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: CI

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: ['7.2', '7.3', '7.4']
laravel: ['5.8.*', '6.*', '7.*']
include:
- laravel: '7.*'
testbench: '5.*'
- laravel: '6.*'
testbench: '4.*'
- laravel: '5.8.*'
testbench: '3.8.*'

name: P${{ matrix.php }} - L${{ matrix.laravel }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: common, curl, json, mbstring, zip, sqlite, pdo_sqlite
coverage: xdebug

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --prefer-dist --no-interaction --no-suggest
# lower php and laravel versions

- name: PHPUnit
if: matrix.php != '7.4' || matrix.laravel != '7.*'
run: vendor/bin/phpunit

# last php and laravel versions

- name: Code analysis
if: matrix.php == '7.4' && matrix.laravel == '7.*'
run: |
vendor/bin/phpcs
vendor/bin/phpmd src text phpmd.xml
vendor/bin/phpstan analyse
- name: PHPUnit + Code coverage
if: matrix.php == '7.4' && matrix.laravel == '7.*'
run: |
mkdir -p build/logs
vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
- name: Code coverage upload to Coveralls
if: matrix.php == '7.4' && matrix.laravel == '7.*'
env:
COVERALLS_RUN_LOCALLY: 1
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
echo ${GITHUB_REF##*/}
composer require php-coveralls/php-coveralls
vendor/bin/php-coveralls -v --coverage_clover=build/logs/clover.xml
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
composer.phar
build
composer.lock
vendor
coverage
.phpunit.result.cache
.idea
38 changes: 0 additions & 38 deletions .travis.yml

This file was deleted.

15 changes: 13 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## [1.3.0](https://github.com/Okipa/laravel-table/compare/1.2.7...1.3.0)

2020-04-25

* Tests have been migrated from Travis to Github actions.
* Added PHP7.4 support.
* Added Laravel 7 support.
* Dropped Laravel support before 5.8 version.
* Dropped PHP support before 7.2 version.
* Reworked documentation.

## [1.2.7](https://github.com/Okipa/laravel-table/compare/1.2.6...1.2.7)

2020-04-03
Expand Down Expand Up @@ -151,8 +162,8 @@ route('user.edit, ['id' => $user->id, 'foo' => 'bar']);
* **Possible breaking change :** reverted last tag features => removed the capacity to override default classes (config) for the results cells with the Table `->resultClasses()` method.
* Added the capacity to append some results objects to the table with the `->result()` method with the following methods :
* `->title()` : Set the result row title.
* `->html()` : Display a HTML output for the result row. The closure let you manipulate the following attributes : \$displayedList.
* `->classes()` : Override the default results classes and apply the given classes only on this result row. The default result classes are managed by the config('laravel-table.classes.results') value.
* `->html()` : Display a HTML output for the result row. The closure let you manipulate the following attributes : `\Illuminate\Support\Collection $displayedList`.
* `->classes()` : Override the default results classes and apply the given classes only on this result row. The default result classes are managed by the `config('laravel-table.classes.results')` value.
* Added the capacity to manage a custom results template path in the config and with the `->$resultsComponentPath()` method.

## [1.0.6](https://github.com/Okipa/laravel-table/compare/1.0.5...1.0.6)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) Arthur LORENT arthur.lorent@gmail.com
Copyright (c) 2018 Arthur LORENT

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading

0 comments on commit 1f63c86

Please sign in to comment.