Skip to content

Commit

Permalink
Merge branch 'feature/second-release' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
cerbero90 committed Sep 10, 2024
2 parents 66eebd9 + c7cbb4a commit 69dc23a
Show file tree
Hide file tree
Showing 96 changed files with 3,709 additions and 2,248 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
github: cerbero90
ko_fi: cerbero90
52 changes: 23 additions & 29 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: build

on:
push:
pull_request:
push:
pull_request:

jobs:
tests:
Expand All @@ -11,20 +11,11 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [7.2, 7.3, 7.4, 8.0]
laravel: [6.*, 7.*, 8.*]
dependency-version: [prefer-lowest, prefer-stable]
os: [ubuntu-latest, windows-latest]
exclude:
- laravel: 6.*
php: 8.0
dependency-version: prefer-lowest
- laravel: 8.*
php: 7.2
- os: windows-latest
php: 8.0

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
php: [8.1, 8.2, 8.3]
dependency-version: [prefer-stable]
os: [ubuntu-latest]

name: PHP ${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}

steps:
- name: Checkout code
Expand All @@ -34,17 +25,15 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip
tools: composer:v2
coverage: none

- name: Install dependencies
run: |
composer require "illuminate/contracts=${{ matrix.laravel }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/phpunit --verbose
run: vendor/bin/pest

coverage:
runs-on: ubuntu-latest
Expand All @@ -54,11 +43,13 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
php-version: 8.1
extensions: dom, curl, libxml, mbstring, zip
tools: composer:v2
coverage: xdebug
Expand All @@ -67,17 +58,16 @@ jobs:
run: composer update --prefer-stable --prefer-dist --no-interaction

- name: Execute tests
run: vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
run: vendor/bin/pest --coverage-text --coverage-clover=coverage.clover

- name: Upload coverage
run: |
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover
style:
linting:
runs-on: ubuntu-latest

name: Coding style
name: Linting

steps:
- name: Checkout code
Expand All @@ -86,9 +76,13 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
tools: phpcs
php-version: 8.2
tools: composer:v2
coverage: none

- name: Execute check
run: phpcs --standard=psr12 src/
- name: Install dependencies
run: |
composer update --prefer-stable --prefer-dist --no-interaction
- name: Execute Duster
run: vendor/bin/duster lint -u tlint,phpcodesniffer,pint,phpstan -vvv
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ composer.lock
vendor
phpcs.xml
phpunit.xml
.phpunit.cache
.phpunit.result.cache
.DS_Store
2 changes: 2 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
build:
environment:
php: 8.2
nodes:
analysis:
project_setup:
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

All notable changes to `lazy-json-pages` will be documented in this file.

Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
Updates should follow the [Keep a CHANGELOG](https://keepachangelog.com/) principles.

## 1.0.0 - 2021-08-08

Expand Down
Loading

0 comments on commit 69dc23a

Please sign in to comment.